Function at 0x408fd8
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.004810b0
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], 0x583595
push ebx
add ebx, 0x70
push ebx
push 0x14
call fcn.004810b0
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], 0x5836b5
pop ebx
pop ebx
mov dword [ebp - 0x18], 0
push 0x9f8a5c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
push 0x9f8a78
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 0x4090af
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov eax, 0x583549
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00405803
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4090aa
push ebx
call fcn.004810c2
add esp, 4
jmp 0x409627
push 0xffffffffffffffff
push 0x12
push 0x1601d548
push 0x52011cb0
call fcn.004810da
add esp, 0x10
test eax, eax
je 0x4090f0
push 0x9f8a38
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 0x4090f0
mov eax, 1
jmp 0x4090f2
xor eax, eax
test eax, eax
je 0x40912c
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov eax, 0x583568
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00405803
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x409127
push ebx
call fcn.004810c2
add esp, 4
jmp 0x409627
push 0xffffffffffffffff
push 0x12
push 0x1601d556
push 0x52011cb0
call fcn.004810da
add esp, 0x10
test eax, eax
je 0x40916d
push 0x9f8a44
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 0x40916d
mov eax, 1
jmp 0x40916f
xor eax, eax
test eax, eax
je 0x4091a9
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov eax, 0x583579
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00405803
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4091a4
push ebx
call fcn.004810c2
add esp, 4
jmp 0x409627
push 0x9f8a5c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
push 0x9f8a60
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.004810da
add esp, 0x10
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 0x12
push 0x1601d55e
push 0x52011cb0
call fcn.004810da
add esp, 0x10
mov dword [ebp - 8], eax
push 0x9f8a60
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 0x409472
call fcn.0040963b
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 0x40926a
push ebx
call fcn.004810c2
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x409279
jmp 0x40927b
jmp 0x40923d
call fcn.0040bc22
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 + 0x30]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4092a8
push ebx
call fcn.004810c2
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x4092b7
jmp 0x4092b9
jmp 0x40927b
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 0x409437
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 0x40931f
cmp dword [ebp - 0x18], 1
jne 0x409311
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 0x409311
mov eax, 1
jmp 0x409313
xor eax, eax
test eax, eax
jne 0x40931f
xor eax, eax
jmp 0x409324
mov eax, 1
test eax, eax
je 0x409432
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 0x409432
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x44]
test eax, eax
je 0x409400
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x409400
cmp dword [ebp - 4], 0
je 0x4093f9
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 3
jg 0x4093f1
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x70]
test eax, eax
je 0x4093ee
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 0x4093ee
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 0x4093e9
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 0x4093e9
mov dword [ebp - 0xc], 1
jmp 0x4093f1
pop ecx
jmp 0x40937f
add esp, 4
jmp 0x409400
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x409423
push 0
push 0x9f8a78
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x24]
jmp 0x409432
push 0x9f8a78
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
jmp 0x40943c
jmp 0x4092b9
cmp dword [ebp - 0xc], 0
je 0x409457
cmp dword [ebp - 8], 0
je 0x409457
mov eax, 1
jmp 0x409459
xor eax, eax
test eax, eax
je 0x409472
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x80]
cmp dword [ebp - 0xc], 0
je 0x4094ce
push 0x80000301
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 0x10]
push 0x20004
push dword [0x9f8a40]
push dword [0x9f8a3c]
push 3
mov eax, 1
mov ebx, 0x4eabb0
call fcn.004810d4
add esp, 0x28
push 0x9f8a98
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
jmp 0x4094dd
push 0x9f8a9c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
cmp dword [ebp - 0x10], 0xffffffff
je 0x4094f2
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0040bd17
call fcn.0040c6e8
push 1
push 0x9f8a74
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x34]
push 0x9f8a60
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
push 0x9f8a44
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, 0x483120
call fcn.004810c8
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push 0x58358c
mov ecx, 2
call fcn.00402609
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40956e
push ebx
call fcn.004810c2
add esp, 4
push 0
push dword [ebp - 0x24]
push 0xffffffffffffffff
push 8
push 0x1601d557
push 0x52011cb0
call fcn.004810e0
add esp, 0x18
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x409599
push ebx
call fcn.004810c2
add esp, 4
push 0x9f8a38
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, 0x483120
call fcn.004810c8
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push 0x5833a6
mov ecx, 2
call fcn.00402609
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4095ed
push ebx
call fcn.004810c2
add esp, 4
push 0
push dword [ebp - 0x24]
push 0xffffffffffffffff
push 8
push 0x1601d54a
push 0x52011cb0
call fcn.004810e0
add esp, 0x18
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x409618
push ebx
call fcn.004810c2
add esp, 4
push 0x9f8a60
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.004810c2
add esp, 4
mov esp, ebp
pop ebp
ret