Function at 0x401f04
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.00402d1a
lea ecx, [edi + 0xec]
call fcn.00402d1a
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.0040c935
push dword [ebp + 0xc]
lea ecx, [edi + 0x24]
call fcn.0040c935
lea ecx, [edi + 0xbc]
push 0x49dbf0
call fcn.00407e53
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.0040d3d2
lea ecx, [esp + 0x28]
call fcn.0040d3d2
lea ecx, [esp + 0x38]
call fcn.0040d3d2
cmp dword [edi + 0x10], ebx
jl 0x472569
cmp dword [edi + 0x10], 4
je 0x47257d
cmp dword [edi + 0x18], ebx
jne 0x47258f
cmp dword [edi + 0x28], ebx
jne 0x47258f
call dword [0x48d714]
push eax
mov ecx, edi
call fcn.0040200a
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.0040197e
xor ebx, ebx
inc ebx
lea ecx, [esp + 0x38]
call fcn.00405cd3
lea ecx, [esp + 0x28]
call fcn.00405cd3
lea ecx, [esp + 0x18]
call fcn.00405cd3
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push dword [edi + 0x10]
call fcn.00422626
pop ecx
mov dword [edi + 0x10], eax
mov byte [edi + 0xc], bl
jmp 0x401fa2
push esi
call fcn.0043e4ea
mov dword [edi + 0x10], 1
jmp 0x401fac
push ebx
mov ecx, esi
call fcn.0040a4f6
cmp word [eax], 0x5b
jne 0x472899
mov eax, dword [edi + 0x18]
dec eax
push eax
mov ecx, esi
call fcn.0040a4f6
cmp word [eax], 0x5d
jne 0x472899
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.0043d68d
test al, al
je 0x472899
mov edx, 0x4b2c08
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
jne 0x47287b
mov edx, 0x4b2c20
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
jne 0x472861
mov edx, 0x4b2cd0
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
jne 0x47281d
mov edx, 0x4b2ce0
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
je 0x472659
mov eax, dword [edi + 8]
test al, 1
jne 0x47280d
or eax, 2
lea ecx, [edi + 0x34]
mov dword [edi + 8], eax
call fcn.00405cf6
lea ecx, [edi + 0x34]
jmp 0x47269b
mov edx, 0x4b2b78
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
je 0x47267a
or dword [edi + 8], 8
lea ecx, [edi + 0xbc]
jmp 0x4727e6
mov edx, 0x4b2b94
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
je 0x4726b5
or dword [edi + 8], 0x10
lea ecx, [edi + 0x78]
call fcn.00405cf6
lea ecx, [edi + 0x78]
lea eax, [esp + 0x28]
push eax
call fcn.00405be9
test eax, eax
jne 0x472811
lea esi, [edi + 0x14]
jmp 0x472804
mov edx, 0x4b2bc0
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
je 0x4726e3
push dword [esp + 0x28]
or dword [edi + 8], 0x80
call fcn.00422241
pop ecx
mov dword [edi + 0xd4], eax
jmp 0x472804
mov edx, 0x4b2bc4
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
je 0x472711
push dword [esp + 0x28]
or dword [edi + 8], 0x100
call fcn.00422241
pop ecx
mov dword [edi + 0xd8], eax
jmp 0x472804
mov edx, 0x4b2bc8
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
je 0x47273f
push dword [esp + 0x28]
or dword [edi + 8], 0x200
call fcn.00422241
pop ecx
mov dword [edi + 0xdc], eax
jmp 0x472804
mov edx, 0x4b2bcc
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
je 0x47276d
push dword [esp + 0x28]
or dword [edi + 8], 0x400
call fcn.00422241
pop ecx
mov dword [edi + 0xe0], eax
jmp 0x472804
mov edx, 0x4b2bd0
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
je 0x472795
push dword [esp + 0x28]
or dword [edi + 8], 0x20
call fcn.00422241
pop ecx
mov dword [edi + 0xcc], eax
jmp 0x472804
mov edx, 0x4b2cb8
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
je 0x4727c3
mov edx, 0x49dbf0
lea ecx, [esp + 0x28]
call fcn.0041f885
test al, al
je 0x472873
or dword [edi + 8], 0x40
jmp 0x472804
mov edx, 0x4b2cf8
lea ecx, [esp + 0x18]
call fcn.0041f885
test al, al
je 0x4727f2
mov eax, dword [edi + 8]
test al, 2
jne 0x472815
or eax, 1
mov dword [edi + 8], eax
lea ecx, [esp + 0x38]
lea eax, [esp + 0x28]
push eax
call fcn.0040c935
jmp 0x472804
mov edx, 0x49dbf0
lea ecx, [esp + 0x18]
call fcn.0043d614
test al, al
jne 0x472873
mov eax, dword [esp + 0x10]
jmp 0x4725c9
push 0xfffffffffffffffd
jmp 0x472817
push 0xfffffffffffffffe
jmp 0x472817
push 0xfffffffffffffffc
pop ebx
jmp 0x401fe4
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
call fcn.004488a2
push dword [esp + 0x10]
call dword [0x48d62c]
test eax, eax
je 0x401fe4
push dword [esp + 0x10]
jmp 0x472849
call dword [0x48d714]
push eax
mov ecx, edi
call fcn.0040200a
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
jmp 0x401fd8
mov edx, 0x49dbf0
lea ecx, [esp + 0x28]
call fcn.0041f885
test al, al
jne 0x472842
or ebx, 0xffffffff
jmp 0x401fe4
mov edx, 0x49dbf0
lea ecx, [esp + 0x28]
call fcn.0041f885
test al, al
je 0x472873
mov eax, dword [edi]
test eax, eax
je 0x401fe4
jmp 0x472852
cmp dword [esp + 0x3c], ebx
je 0x4728ab
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.0040c935
cmp dword [edi + 8], ebx
jne 0x4728b7
mov dword [edi + 8], 1
or dword [edi + 8], 4
mov esi, dword [0x48d65c]
cmp byte [edi + 0xc], bl
jne 0x4728d6
lea ecx, [edi + 0x24]
call fcn.0040b8a7
push dword [edi + 0x28]
push dword [edi + 0x24]
call esi
test byte [edi + 8], 1
je 0x4728f1
cmp byte [edi + 0xc], bl
jne 0x4728f1
lea ecx, [edi + 0x14]
call fcn.0040b8a7
push dword [edi + 0x18]
push dword [edi + 0x14]
call esi
push edi
push 0x43e69d
cmp byte [ebp + 0x18], bl
je 0x47290b
call dword [0x48d628]
push eax
call dword [0x48d658]
jmp 0x472911
call dword [0x48d624]
mov ebx, dword [ebp + 0x10]
lea esi, [edi + 0xec]
push esi
mov ecx, ebx
call fcn.0043e44e
mov ecx, esi
call fcn.00402d1a
cmp dword [edi + 0xe4], 1
jl 0x472940
mov eax, dword [ebx + 4]
mov ecx, edi
mov eax, dword [eax]
push dword [eax]
call fcn.0040200a
mov ebx, dword [edi + 0xe4]
jmp 0x401fe4