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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
call fcn.00403845
lea ecx, [edi + 0xec]
call fcn.00403845
mov al, byte [ebp + 0x20]
push dword [ebp + 8]
mov byte [edi + 4], al
mov al, byte [ebp + 0x1c]
lea esi, [edi + 0x14]
mov ecx, esi
mov byte [edi + 5], al
call fcn.0040ee79
push dword [ebp + 0xc]
lea ecx, [edi + 0x24]
call fcn.0040ee79
lea ecx, [edi + 0xbc]
push 0x4a0bc8
call fcn.004099dc
mov eax, dword [ebp + 0x14]
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [edi + 0xcc], 1
mov dword [edi + 0x10], eax
mov byte [edi + 0xc], 1
mov dword [edi + 8], ebx
mov dword [edi + 0xd0], ebx
mov dword [edi + 0xe4], ebx
call fcn.0040e5a2
lea ecx, [esp + 0x28]
call fcn.0040e5a2
lea ecx, [esp + 0x38]
call fcn.0040e5a2
cmp dword [edi + 0x10], ebx
jl 0x4732c2
cmp dword [edi + 0x10], 4
je 0x4732d6
cmp dword [edi + 0x18], ebx
jne 0x4732e8
cmp dword [edi + 0x28], ebx
jne 0x4732e8
call dword [0x49071c]
push eax
mov ecx, edi
call fcn.00402e7d
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004013bb
xor ebx, ebx
inc ebx
lea ecx, [esp + 0x38]
call fcn.00409de3
lea ecx, [esp + 0x28]
call fcn.00409de3
lea ecx, [esp + 0x18]
call fcn.00409de3
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push dword [edi + 0x10]
call fcn.00428bad
pop ecx
mov dword [edi + 0x10], eax
mov byte [edi + 0xc], bl
jmp 0x401353
push esi
call fcn.00441601
mov dword [edi + 0x10], 1
jmp 0x40135d
push ebx
mov ecx, esi
call fcn.00404400
cmp word [eax], 0x5b
jne 0x4735f2
mov eax, dword [edi + 0x18]
dec eax
push eax
mov ecx, esi
call fcn.00404400
cmp word [eax], 0x5d
jne 0x4735f2
mov eax, dword [edi + 0x18]
sub eax, 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004407a4
test al, al
je 0x4735f2
mov edx, 0x4b5d54
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
jne 0x4735d4
mov edx, 0x4b5d6c
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
jne 0x4735ba
mov edx, 0x4b5e1c
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
jne 0x473576
mov edx, 0x4b5e2c
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
je 0x4733b2
mov eax, dword [edi + 8]
test al, 1
jne 0x473566
or eax, 2
lea ecx, [edi + 0x34]
mov dword [edi + 8], eax
call fcn.0040c15b
lea ecx, [edi + 0x34]
jmp 0x4733f4
mov edx, 0x4b5cc4
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
je 0x4733d3
or dword [edi + 8], 8
lea ecx, [edi + 0xbc]
jmp 0x47353f
mov edx, 0x4b5ce0
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
je 0x47340e
or dword [edi + 8], 0x10
lea ecx, [edi + 0x78]
call fcn.0040c15b
lea ecx, [edi + 0x78]
lea eax, [esp + 0x28]
push eax
call fcn.0040a3c2
test eax, eax
jne 0x47356a
lea esi, [edi + 0x14]
jmp 0x47355d
mov edx, 0x4b5d0c
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
je 0x47343c
push dword [esp + 0x28]
or dword [edi + 8], 0x80
call fcn.00425531
pop ecx
mov dword [edi + 0xd4], eax
jmp 0x47355d
mov edx, 0x4b5d10
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
je 0x47346a
push dword [esp + 0x28]
or dword [edi + 8], 0x100
call fcn.00425531
pop ecx
mov dword [edi + 0xd8], eax
jmp 0x47355d
mov edx, 0x4b5d14
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
je 0x473498
push dword [esp + 0x28]
or dword [edi + 8], 0x200
call fcn.00425531
pop ecx
mov dword [edi + 0xdc], eax
jmp 0x47355d
mov edx, 0x4b5d18
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
je 0x4734c6
push dword [esp + 0x28]
or dword [edi + 8], 0x400
call fcn.00425531
pop ecx
mov dword [edi + 0xe0], eax
jmp 0x47355d
mov edx, 0x4b5d1c
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
je 0x4734ee
push dword [esp + 0x28]
or dword [edi + 8], 0x20
call fcn.00425531
pop ecx
mov dword [edi + 0xcc], eax
jmp 0x47355d
mov edx, 0x4b5e04
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
je 0x47351c
mov edx, 0x4a0bc8
lea ecx, [esp + 0x28]
call fcn.00422ad5
test al, al
je 0x4735cc
or dword [edi + 8], 0x40
jmp 0x47355d
mov edx, 0x4b5e44
lea ecx, [esp + 0x18]
call fcn.00422ad5
test al, al
je 0x47354b
mov eax, dword [edi + 8]
test al, 2
jne 0x47356e
or eax, 1
mov dword [edi + 8], eax
lea ecx, [esp + 0x38]
lea eax, [esp + 0x28]
push eax
call fcn.0040ee79
jmp 0x47355d
mov edx, 0x4a0bc8
lea ecx, [esp + 0x18]
call fcn.0044072b
test al, al
jne 0x4735cc
mov eax, dword [esp + 0x10]
jmp 0x473322
push 0xfffffffffffffffd
jmp 0x473570
push 0xfffffffffffffffe
jmp 0x473570
push 0xfffffffffffffffc
pop ebx
jmp 0x401395
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
call fcn.0044b8c9
push dword [esp + 0x10]
call dword [0x490630]
test eax, eax
je 0x401395
push dword [esp + 0x10]
jmp 0x4735a2
call dword [0x49071c]
push eax
mov ecx, edi
call fcn.00402e7d
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
jmp 0x401389
mov edx, 0x4a0bc8
lea ecx, [esp + 0x28]
call fcn.00422ad5
test al, al
jne 0x47359b
or ebx, 0xffffffff
jmp 0x401395
mov edx, 0x4a0bc8
lea ecx, [esp + 0x28]
call fcn.00422ad5
test al, al
je 0x4735cc
mov eax, dword [edi]
test eax, eax
je 0x401395
jmp 0x4735ab
cmp dword [esp + 0x3c], ebx
je 0x473604
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.0040ee79
cmp dword [edi + 8], ebx
jne 0x473610
mov dword [edi + 8], 1
or dword [edi + 8], 4
mov esi, dword [0x490660]
cmp byte [edi + 0xc], bl
jne 0x47362f
lea ecx, [edi + 0x24]
call fcn.0040f78a
push dword [edi + 0x28]
push dword [edi + 0x24]
call esi
test byte [edi + 8], 1
je 0x47364a
cmp byte [edi + 0xc], bl
jne 0x47364a
lea ecx, [edi + 0x14]
call fcn.0040f78a
push dword [edi + 0x18]
push dword [edi + 0x14]
call esi
push edi
push 0x4417b4
cmp byte [ebp + 0x18], bl
je 0x473664
call dword [0x49062c]
push eax
call dword [0x49065c]
jmp 0x47366a
call dword [0x490628]
mov ebx, dword [ebp + 0x10]
lea esi, [edi + 0xec]
push esi
mov ecx, ebx
call fcn.00441565
mov ecx, esi
call fcn.00403845
cmp dword [edi + 0xe4], 1
jl 0x473699
mov eax, dword [ebx + 4]
mov ecx, edi
mov eax, dword [eax]
push dword [eax]
call fcn.00402e7d
mov ebx, dword [edi + 0xe4]
jmp 0x401395