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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0xfc
mov edx, ecx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x50]
mov ecx, 0x14
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x34]
xor eax, eax
test ebx, ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x38], ecx
mov edi, dword [esp + 0x38]
mov ecx, 0x14
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0x1c]
mov ebp, dword [eax + edx*4]
je 0x40fa64
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
test edx, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
je 0x40f8e0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jg 0x40f667
cmp ebx, dword [esp + 0x38]
sete al
cmp byte [esp + 0x48], 0
je 0x40f8ac
test al, al
je 0x40f8c8
lea edx, [esp + 0x50]
mov dword [esp], edx
call fcn.00459640
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 8], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x6c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xf0]
mov dword [esp], eax
call fcn.0045b390
xor edx, edx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x80000000
add dword [esp + 0x40], eax
sub dword [esp + 0x3c], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0x80000000
mov dword [ebx + 0x40], 0xffffffff
test eax, eax
setne dl
mov dword [ebx + 0x44], 0xffffffff
mov dword [esp + 0x48], edx
je 0x40f645
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x40f739
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x80], 0
cmp dword [eax + 8], 1
je 0x40f9e0
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x40f7a7
mov edx, dword [eax + 0x6c]
test edx, edx
je 0x40f7a7
mov dword [esp + 0x18], 2
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp + 0x2c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov edx, dword [eax + 0x6c]
mov eax, dword [eax + 0x68]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xf0]
mov eax, dword [eax + 0x130]
mov edx, eax
sar edx, 0x1f
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0053b0b0
mov dword [esp + 0x80], eax
mov eax, dword [ebp]
mov ecx, dword [ebp + 0xf0]
cmp dword [ebp + 0xec], 0x57415200
mov dword [esp + 0x70], eax
mov edx, dword [ecx + 0x2c]
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x5c], edx
mov edx, dword [ecx + 0x34]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + 0x124]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x120]
mov dword [esp + 0x94], edx
mov dword [esp + 0x90], eax
je 0x40f9c0
mov eax, dword [ecx + 0xe0]
cmp eax, 1
je 0x40f930
cmp eax, 0xffffffff
je 0x40f923
mov eax, dword [esp + 0x44]
test byte [eax + 0x43c], 0x10
je 0x40f970
mov ecx, dword [ebx + 0x18]
cmp dword [esp + 0x68], ecx
je 0x40f98b
lea edx, [esp + 0x50]
mov dword [esp], edx
call fcn.00459cf0
test eax, eax
mov dword [esp + 0x4c], eax
js 0x40f8c8
mov dword [esp], 0x58
call fcn.00537640
test eax, eax
je 0x40fa4b
mov ecx, dword [esp + 0x44]
mov esi, dword [ecx + 0x4e0]
test esi, esi
je 0x40fa40
mov edx, dword [ecx + 0x4e4]
mov ecx, dword [esp + 0x44]
mov dword [edx + 0x50], eax
mov esi, dword [esp + 0x34]
mov edi, eax
mov dword [ecx + 0x4e4], eax
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jg 0x40f667
cmp ebx, dword [esp + 0x38]
sete al
cmp byte [esp + 0x48], 0
jne 0x40f65f
test al, al
je 0x40f8c8
mov eax, dword [ebp + 0xf0]
mov dword [esp], eax
call fcn.0045ba00
mov dword [ebp + 0xf0], 0
mov dword [esp], ebx
call fcn.00459dd0
mov eax, dword [esp + 0x4c]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0xf0]
mov dword [esp + 0x48], 0
test byte [ecx + 0xb0], 1
je 0x40f63d
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
test byte [eax + 0x43c], 0x10
jne 0x40f63d
mov edx, ebp
mov dword [esp], ebx
call fcn.0040e330
jmp 0x40f63d
cmp dword [ecx + 0x20], 1
jne 0x40f93e
lea esi, [esi]
or dword [esp + 0x74], 1
cmp eax, 0xffffffff
jne 0x40f812
mov edi, dword [ecx + 0x20]
test edi, edi
jne 0x40f812
test byte [ebx + 0x24], 1
je 0x40f812
mov eax, dword [esp + 0x44]
or dword [esp + 0x74], 1
test byte [eax + 0x43c], 0x10
jne 0x40f823
lea esi, [esi]
lea edx, [esp + 0x50]
mov dword [esp], edx
mov edx, ebp
call fcn.0040e330
mov ecx, dword [ebx + 0x18]
cmp dword [esp + 0x68], ecx
jne 0x40f830
mov eax, dword [ebx + 0x1c]
cmp dword [esp + 0x6c], eax
jne 0x40f830
mov eax, dword [ebx]
mov dword [ebx], 0
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x34], 0
mov dword [esp + 0x84], eax
jmp 0x40f830
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
jmp 0x40f7fa
mov eax, dword [eax + 0x19c]
test eax, eax
jle 0x40f7a7
mov dword [esp + 0x18], 2
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp + 0x2c]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov eax, dword [ebp + 0xf0]
mov eax, dword [eax + 0x130]
mov ecx, eax
sar ecx, 0x1f
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0053b0b0
mov dword [esp + 0x80], eax
jmp 0x40f7a7
mov dword [ecx + 0x4e0], eax
jmp 0x40f87b
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.00459dd0
mov dword [esp + 0x4c], 0xfffffff4
jmp 0x40f8c8
lea edx, [esp + 0xa0]
mov dword [esp], edx
lea ebx, [esp + 0xa0]
call fcn.00459640
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 1
jmp 0x40f63d