Function at 0x410ea0
Capabilities:
Access peb ldr_data
Enumerate files on windows
Read .ini file
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x505161
push eax
mov eax, 0x12dc
mov dword fs:[0], esp
call fcn.004bdb50
mov eax, dword [esp + 0x12ec]
push ebx
push ebp
mov ebp, ecx
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.004e1e9b
mov eax, dword [0x56b44c]
xor esi, esi
mov dword [esp + 0x12f0], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x12f0], 3
call fcn.004db3a1
mov dword [esp + 0x58], 0x51af4c
mov dword [esp + 0x5c], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x12f0], 5
call fcn.004db3a1
mov ecx, dword [ebp + 0x40]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov byte [esp + 0x12f0], 6
mov ecx, dword [eax - 8]
mov ax, word [eax + ecx*2 - 2]
cmp ax, 0x5c
je 0x410f55
push 0x5c
lea ecx, [esp + 0x18]
call fcn.004e223f
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
call fcn.004e1f6e
push 0x55c784
lea ecx, [esp + 0x18]
call fcn.004e2218
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [0x57614c]
mov dword [esp + 0x10], eax
mov ebx, dword [edx + 0x5dc]
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 2
add ebx, 0x10
cmp eax, 0xffffffff
mov dword [esp + 0x1c], ebx
je 0x411840
push edi
mov edi, dword [esp + 0x1300]
lea eax, [esp + 0x58]
mov dword [esp + 0x38], edi
push eax
call fcn.004ad640
add esp, 4
mov byte [esp + 0x12f4], 7
mov eax, dword [esp + 0x9c]
test ebx, eax
jne 0x411515
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x14]
call fcn.004e1fbe
lea edx, [esp + 0x10]
lea ecx, [esp + 0x3c]
push edx
call fcn.004e1f6e
lea eax, [esp + 0x38]
push 4
push eax
lea ecx, [esp + 0x18]
call fcn.004d6e91
mov ecx, dword [eax]
push 0x55c7ec
push ecx
call fcn.004bda36
add esp, 8
cmp eax, esi
lea ecx, [esp + 0x38]
sete bl
call fcn.004e1e27
test bl, bl
je 0x41146a
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.004e2066
mov eax, dword [eax]
lea edx, [esp + 0x2ec]
push eax
push 0x800
push edx
push 0x5705d0
push 0x55c7e4
push 0x55c7c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x24]
call fcn.004e1e27
cmp dword [esp + 0x34], esi
jne 0x4110bc
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.004db676
mov eax, dword [esp + 0x64]
push 0xffffffffffffffff
mov esi, eax
inc eax
push eax
lea ecx, [esp + 0x64]
call fcn.00411ba0
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x2ec]
push eax
lea ecx, [ebp + 0x1a4]
mov dword [edx + esi*4], edi
call fcn.004dbabf
inc edi
xor esi, esi
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x9c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x410fcd
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [0x56b44c]
mov dword [esp + 0x90], esi
mov dword [esp + 0x98], edx
mov dword [esp + 0x94], esi
mov ecx, dword [0x57614c]
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x12f8], 9
call fcn.004487e0
test eax, eax
je 0x4115a2
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x1c]
inc eax
push eax
push edx
call fcn.004d6dd8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12f8], 0xa
call fcn.004e1f6e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12f4], 9
call fcn.004e1e27
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x84]
push eax
call fcn.004724e0
test eax, eax
je 0x4115a2
mov ecx, dword [esp + 0x8c]
xor eax, eax
cmp ecx, esi
mov dword [esp + 0x24], eax
jle 0x4115a2
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x90]
shl edx, 5
mov ecx, dword [edx + eax + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.004e1fe5
mov eax, dword [esp + 0x4c]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], 0
jle 0x41131b
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41131b
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [eax + edi*4]
push ecx
call fcn.004bda36
add esp, 8
test eax, eax
jne 0x41130e
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 1
lea eax, [edx + edi*4]
push eax
call fcn.004e1f6e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
mov eax, dword [ecx - 8]
add eax, 0xfffffffc
push eax
mov eax, dword [esp + 0x4c]
push edx
lea ecx, [eax + edi*4]
call fcn.004d6f0d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x12f8], 0xb
call fcn.004e1f6e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12f4], 9
call fcn.004e1e27
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4112e2
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x1c]
lea edx, [ecx + edi*4]
lea ecx, [esp + 0x30]
push edx
push eax
push ecx
call fcn.004e2066
mov edx, dword [ebp + 0x184]
push 0
push 0
push 0x1108
push edx
mov byte [esp + 0x1304], 0xc
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.004da502
push 1
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00421960
mov ecx, dword [esp + 0x1310]
add esp, 0xc
mov edx, dword [esp + 0x10]
push 0xffff0002
push ecx
push 0
push 0
push 0
push eax
push eax
push edx
push 0x23
lea ecx, [ebp + 0x168]
call fcn.004d9c86
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x12f4], 9
call fcn.004e1e27
mov eax, dword [esp + 0x60]
lea ecx, [ebp + 0x168]
mov eax, dword [eax + edi*4]
push eax
push 0
push 0
push 0
push 0
push 0
push 4
push esi
call fcn.004d9c38
mov ecx, dword [esp + 0x48]
lea ecx, [ecx + edi*4]
call fcn.004e1daf
mov eax, dword [esp + 0x4c]
inc edi
cmp edi, eax
jl 0x4111d0
mov eax, dword [esp + 0x78]
xor edi, edi
test eax, eax
mov dword [esp + 0x20], edi
jle 0x41144d
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41144d
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [eax + edi*4]
push ecx
call fcn.004bda36
add esp, 8
test eax, eax
jne 0x41143c
mov ecx, dword [esp + 0x1304]
mov edx, dword [esp + 0x74]
push 0xffff0002
push ecx
mov eax, dword [edx + edi*4]
push 0
push 0
push 0
push 2
lea edi, [ebp + 0x168]
push 0
push eax
push 0x23
mov ecx, edi
call fcn.004d9c86
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
mov esi, eax
push 0
push 4
push esi
mov ecx, edi
call fcn.004d9c38
mov edx, dword [0x57614c]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
lea ebx, [edx + 0x7b4]
lea edx, [eax + ecx*4]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004e2066
push 0x55c3b8
lea edx, [esp + 0x44]
push eax
push edx
mov byte [esp + 0x1300], 0xd
call fcn.004e20cc
mov ebx, dword [ebx]
mov eax, dword [eax]
push ebx
push eax
call fcn.004bdb15
add esp, 8
lea ecx, [esp + 0x40]
test eax, eax
sete bl
call fcn.004e1e27
lea ecx, [esp + 0x28]
mov byte [esp + 0x12f4], 9
call fcn.004e1e27
test bl, bl
je 0x411428
push 0
push 0x10
push 0x10
push 0
push 0
push 0
push 8
push esi
mov ecx, edi
mov dword [ebp + 0x1ec], esi
call fcn.004d9c38
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x20]
lea ecx, [ecx + edx*4]
call fcn.004e1daf
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x78]
inc edi
cmp edi, eax
mov dword [esp + 0x20], edi
jl 0x41132d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x8c]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x411198
jmp 0x4115a6
cmp dword [esp + 0x34], esi
jne 0x4110bc
lea ecx, [esp + 0x30]
push 4
push ecx
lea ecx, [esp + 0x18]
call fcn.004d6e91
mov edx, dword [eax]
push 0x55c7b4
push edx
call fcn.004bdb15
add esp, 8
cmp eax, esi
lea ecx, [esp + 0x30]
sete bl
call fcn.004e1e27
test bl, bl
je 0x4110bc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.004e2066
push eax
lea ecx, [ebp + 0x1a4]
mov byte [esp + 0x12f8], 8
call fcn.004dbb02
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12f4], 7
call fcn.004e1e27
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.004db676
mov eax, dword [esp + 0x64]
push 0xffffffffffffffff
mov esi, eax
inc eax
push eax
lea ecx, [esp + 0x64]
call fcn.00411ba0
mov edx, dword [esp + 0x60]
mov dword [edx + esi*4], edi
jmp 0x4110b9
test al, 0x10
je 0x4110c0
mov ecx, dword [0x57614c]
cmp dword [ecx + 0x5dc], 1
je 0x411534
test al, 2
jne 0x4110c0
lea edx, [esp + 0xc8]
push 0x55c780
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4110c0
lea eax, [esp + 0xc8]
push 0x55c778
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4110c0
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0xc8]
push ecx
push edx
call fcn.004bdb15
add esp, 8
cmp eax, esi
je 0x4110c0
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0xc8]
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.004db64a
jmp 0x4110c0
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x78]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x4116a9
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x411694
mov edx, dword [esp + 0x1304]
push 0xffff0002
push edx
push 0
push 0
push 0
push 2
lea edi, [ebp + 0x168]
push 0
push eax
push 0x23
mov ecx, edi
call fcn.004d9c86
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
mov esi, eax
push 0
push 4
push esi
mov ecx, edi
call fcn.004d9c38
mov eax, dword [0x57614c]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
lea ebx, [eax + 0x7b4]
lea eax, [ecx + edx*4]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.004e2066
push 0x55c3b8
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x12fc], 0xe
push eax
call fcn.004e20cc
mov ebx, dword [ebx]
mov ecx, dword [eax]
push ebx
push ecx
call fcn.004bdb15
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
sete bl
call fcn.004e1e27
lea ecx, [esp + 0x40]
mov byte [esp + 0x12f4], 9
call fcn.004e1e27
test bl, bl
je 0x411694
push 0
push 0x10
push 0x10
push 0
push 0
push 0
push 8
push esi
mov ecx, edi
mov dword [ebp + 0x1ec], esi
call fcn.004d9c38
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4115b8
mov eax, dword [esp + 0x4c]
xor edi, edi
test eax, eax
jle 0x4117d4
mov bl, 0xf
mov edx, dword [esp + 0x48]
mov ecx, dword [edx + edi*4]
lea eax, [edx + edi*4]
mov edx, dword [ecx - 8]
test edx, edx
je 0x4117c7
push eax
lea ecx, [esp + 0x14]
call fcn.004e1f6e
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx - 8]
lea ecx, [ecx + edi*4]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004d6f0d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x12f8], bl
call fcn.004e1f6e
lea ecx, [esp + 0x28]
mov byte [esp + 0x12f4], 9
call fcn.004e1e27
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4117a7
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x1c]
lea eax, [edx + edi*4]
lea edx, [esp + 0x24]
push eax
push ecx
push edx
call fcn.004e2066
mov eax, dword [ebp + 0x184]
push 0
push 0
push 0x1108
push eax
mov byte [esp + 0x1304], 0x10
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.004da502
push 1
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00421960
mov edx, dword [esp + 0x1310]
add esp, 0xc
lea ecx, [ebp + 0x168]
push 0xffff0002
push edx
push 0
push 0
push 0
push eax
push eax
mov eax, dword [esp + 0x2c]
push eax
push 0x23
call fcn.004d9c86
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x12f4], 9
call fcn.004e1e27
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + edi*4]
lea ecx, [ebp + 0x168]
push eax
push 0
push 0
push 0
push 0
push 0
push 4
push esi
call fcn.004d9c38
mov eax, dword [esp + 0x4c]
inc edi
cmp edi, eax
jl 0x4116b9
mov eax, dword [esp + 0x90]
mov byte [esp + 0x12f4], 0x11
test eax, eax
pop edi
je 0x411805
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x4118f0
push edx
push 0x20
push eax
call fcn.004be265
push esi
call fcn.004e2519
add esp, 4
mov eax, dword [esp + 0x90]
test eax, eax
je 0x411819
push eax
call fcn.004e2519
add esp, 4
lea ecx, [esp + 0x94]
mov byte [esp + 0x12f0], 7
call fcn.004e1e27
lea ecx, [esp + 0x54]
mov byte [esp + 0x12f0], 6
call fcn.004e1e27
xor esi, esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x12f0], 5
call fcn.004db3d4
mov dword [esp + 0x58], 0x51af4c
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x12f0], 0x12
cmp eax, esi
pop esi
pop ebp
pop ebx
je 0x411875
push eax
call fcn.004e2519
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x12e4], 3
call fcn.004db3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12e4], 2
call fcn.004e1e27
lea ecx, [esp]
mov byte [esp + 0x12e4], 1
call fcn.004e1e27
lea ecx, [esp + 0xc]
mov byte [esp + 0x12e4], 0
call fcn.004e1e27
lea ecx, [esp + 8]
mov dword [esp + 0x12e4], 0xffffffff
call fcn.004e1e27
mov ecx, dword [esp + 0x12dc]
mov eax, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x12e8
ret 0x10