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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x74
call fcn.0048e45c
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x1d
rep stosd dword es:[edi], eax
mov dword [ebx], 0x591a75
push ebx
add ebx, 0x70
push ebx
push 0x14
call fcn.0048e45c
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
mov dword [ebx], 0x591ba9
pop ebx
pop ebx
mov dword [ebp - 0x18], 0
push 0xa0db94
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
push 0xa0dbac
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xa
jl 0x40f457
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov eax, 0x591a20
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004084cf
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f452
push ebx
call fcn.0048e46e
add esp, 4
jmp 0x40f835
push 0xffffffffffffffff
push 0x12
push 0x1601d556
push 0x52011cb0
call fcn.0048e486
add esp, 0x10
test eax, eax
je 0x40f498
push 0xa0db7c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40f498
mov eax, 1
jmp 0x40f49a
xor eax, eax
test eax, eax
je 0x40f4d4
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov eax, 0x591a50
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004084cf
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f4cf
push ebx
call fcn.0048e46e
add esp, 4
jmp 0x40f835
push 0xa0db94
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
push 0xa0db98
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
push 0xffffffffffffffff
push 0x12
push 0x1601d544
push 0x52011cb0
call fcn.0048e486
add esp, 0x10
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 0x12
push 0x1601d55e
push 0x52011cb0
call fcn.0048e486
add esp, 0x10
mov dword [ebp - 8], eax
push 0xa0db98
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x28]
test eax, eax
je 0x40f76a
call fcn.0040c2bd
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40f595
push ebx
call fcn.0048e46e
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x40f5a4
jmp 0x40f5a6
jmp 0x40f568
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x34]
test eax, eax
je 0x40f72f
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x38]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
je 0x40f60c
cmp dword [ebp - 0x18], 1
jne 0x40f5fe
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x3c]
test eax, eax
je 0x40f5fe
mov eax, 1
jmp 0x40f600
xor eax, eax
test eax, eax
jne 0x40f60c
xor eax, eax
jmp 0x40f611
mov eax, 1
test eax, eax
je 0x40f72a
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x40]
test eax, eax
je 0x40f72a
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x54]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40f6da
cmp dword [ebp - 4], 0
je 0x40f6d3
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 3
jg 0x40f6cb
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x74]
test eax, eax
je 0x40f6c8
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x78]
test eax, eax
je 0x40f6c8
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x7c]
test eax, eax
je 0x40f6c3
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x80]
test eax, eax
je 0x40f6c3
mov dword [ebp - 0xc], 1
jmp 0x40f6cb
pop ecx
jmp 0x40f656
add esp, 4
jmp 0x40f6da
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x40f70c
push 0xa0dbc8
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
push 0
push 0xa0dbac
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x24]
jmp 0x40f72a
push 0xa0dbcc
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
push 0xa0dbac
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
jmp 0x40f734
jmp 0x40f5a6
cmp dword [ebp - 0xc], 0
je 0x40f74f
cmp dword [ebp - 8], 0
je 0x40f74f
mov eax, 1
jmp 0x40f751
xor eax, eax
test eax, eax
je 0x40f76a
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x84]
cmp dword [ebp - 0x10], 0xffffffff
je 0x40f77f
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0040e975
call fcn.0040f346
push 1
push 0xa0dba8
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x34]
push 0xa0db98
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
push 0xa0db7c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x490500
call fcn.0048e474
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push 0x591a63
mov ecx, 2
call fcn.00403f0e
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f7fb
push ebx
call fcn.0048e46e
add esp, 4
push 0
push dword [ebp - 0x24]
push 0xffffffffffffffff
push 8
push 0x1601d557
push 0x52011cb0
call fcn.0048e48c
add esp, 0x18
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40f826
push ebx
call fcn.0048e46e
add esp, 4
push 0xa0db98
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, dword [ebp - 0x14]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.0048e46e
add esp, 4
mov esp, ebp
pop ebp
ret