Function at 0x4012e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x422158]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
call fcn.00403070
mov edi, eax
mov eax, esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401325
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401b60
push fcn.004016a0
push 0x401680
push 5
push 0x1c
lea eax, [esp + 0x68]
push eax
call fcn.0040a6be
cmp dword [esp + 0x28], 0
je 0x401414
lea ebx, [esp + 0x58]
push 2
lea ecx, [esp + 0x18]
push ecx
call fcn.00401970
mov edi, eax
mov ecx, edi
lea esi, [esp + 0x30]
lea edx, [esp + 0x14]
call fcn.00401760
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00401860
cmp dword [esp + 0x48], 0x10
jb 0x40139f
mov edx, dword [esp + 0x34]
push edx
call fcn.0040a296
add esp, 4
mov eax, dword [esp + 0x28]
lea esi, [edi + 2]
cmp eax, esi
jae 0x4013ac
mov esi, eax
test esi, esi
jbe 0x4013f2
mov edx, dword [esp + 0x2c]
cmp edx, 0x10
mov ecx, dword [esp + 0x18]
mov edi, ecx
jae 0x4013c5
lea edi, [esp + 0x18]
mov ecx, edi
sub eax, esi
push eax
add edi, esi
push edi
push edx
push ecx
call fcn.0040a64d
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
sub eax, esi
add esp, 0x10
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], eax
jae 0x4013ee
lea ecx, [esp + 0x18]
mov byte [ecx + eax], 0
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, eax
call fcn.00401860
add ebx, 0x1c
cmp dword [esp + 0x28], 0
jne 0x401362
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x88], 0
je 0x401489
lea edx, [esp + 0x74]
call fcn.004021e0
test al, al
jne 0x401489
mov eax, dword [esp + 0x88]
cmp eax, 0x20
mov dword [esp + 0x30], eax
jbe 0x401444
mov eax, 0x20
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x78]
mov ebx, 0x10
cmp dword [esp + 0x8c], ebx
jae 0x40145a
lea ecx, [esp + 0x78]
push eax
push ecx
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040d6a0
mov edx, dword [esp + 0x3c]
add esp, 0xc
add edi, 0xcc
mov ecx, 0xa
lea esi, [esp + 0x30]
mov byte [esp + edx + 0x34], 0
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xc]
jmp 0x40148e
mov ebx, 0x10
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x401500
cmp eax, ebx
mov dword [esp + 0x30], eax
jbe 0x4014a7
mov eax, ebx
mov dword [esp + 0x30], eax
cmp dword [esp + 0xa8], ebx
mov ecx, dword [esp + 0x94]
jae 0x4014be
lea ecx, [esp + 0x94]
push eax
push ecx
lea eax, [esp + 0x3c]
push eax
call fcn.0040d6a0
mov ecx, dword [esp + 0x3c]
mov byte [esp + ecx + 0x40], 0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [edi + 0x50], edx
mov edx, dword [esp + 0x48]
mov dword [edi + 0x54], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x58], ecx
mov ecx, dword [esp + 0x50]
mov dword [edi + 0x5c], edx
mov dword [edi + 0x60], eax
add esp, 0xc
mov dword [edi + 0x64], ecx
lea edx, [esp + 0xac]
call fcn.004021e0
test al, al
je 0x401589
lea edx, [esp + 0x58]
push edx
lea esi, [esp + 0x34]
mov byte [edi + 0xf9], 1
call fcn.00402250
mov eax, dword [esp + 0x38]
add esp, 4
cmp dword [esp + 0x48], ebx
jae 0x401536
lea eax, [esp + 0x34]
push eax
call fcn.00401280
add esp, 4
cmp dword [0x42a63c], 0
mov esi, eax
jne 0x401559
push 1
call fcn.0040a741
add esp, 4
mov dword [0x42a63c], eax
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push eax
mov ecx, esi
call fcn.00401790
call fcn.00407430
push esi
call fcn.0040a723
add esp, 4
cmp dword [esp + 0x48], ebx
jb 0x401589
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0040a296
add esp, 4
cmp dword [esp + 0xdc], 0
je 0x4015bb
cmp dword [esp + 0xe0], ebx
mov eax, dword [esp + 0xcc]
jae 0x4015aa
lea eax, [esp + 0xcc]
push eax
call fcn.0040a6b9
add esp, 4
cmp eax, 0x17
ja 0x4015bb
mov dword [edi + 0x40], eax
push 0xc
push str.pwConfig.dat
lea eax, [esp + 0x60]
call fcn.00401a70
cmp dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x5c]
jae 0x4015d9
lea ebx, [esp + 0x5c]
push 0
push 0
push 0xffffffffffffffff
push ebx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x4015f4
xor edi, edi
jmp 0x401620
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004093ef
add esp, 4
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
push ebx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0xc]
push edi
call fcn.00403a00
push edi
call fcn.0040a723
add esp, 4
push fcn.004016a0
push 5
push 0x1c
lea eax, [esp + 0x64]
push eax
call fcn.0040a2f9
cmp dword [esp + 0x2c], 0x10
jb 0x40165a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040a296
add esp, 4
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a3a1
mov esp, ebp
pop ebp
ret 0x10