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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0xfc]
mov ecx, 0x3f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0
cmp dword [ebp + 8], 0
jne 0x5030d5
mov eax, 0xffffff9a
jmp 0x5033e3
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
jne 0x5030ee
mov eax, 0xffffff9a
jmp 0x5033e3
mov eax, dword [ebp - 8]
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x80], 8
jne 0x503183
mov eax, dword [ebp - 8]
cmp dword [eax + 0x84], 0
jne 0x503183
cmp dword [ebp - 0x20], 0
jne 0x503183
mov eax, dword [ebp - 8]
cmp dword [eax + 0x40], 0
jne 0x50314f
mov eax, dword [ebp - 8]
push eax
call fcn.00502f80
add esp, 4
cmp eax, 0xffffffff
jne 0x503137
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 0x40], 0x4000
mov eax, dword [ebp - 8]
add eax, 0x88
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x2c], ecx
push 4
mov eax, dword [ebp - 8]
add eax, 0x30
push eax
call fcn.005084a0
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
sub ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x6c]
mov eax, dword [ebp - 8]
mov dword [eax + 0x6c], ecx
jmp 0x503110
cmp dword [ebp - 0x20], 1
jne 0x503190
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x6c], 0
jbe 0x5031b7
cmp dword [ebp - 0x20], 0
jne 0x5031b7
mov eax, dword [ebp - 8]
push eax
call fcn.00502f80
add esp, 4
cmp eax, 0xffffffff
jne 0x5031b7
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 8]
cmp dword [eax + 0x80], 8
jne 0x5031eb
mov eax, dword [ebp - 8]
cmp dword [eax + 0x84], 0
jne 0x5031eb
mov eax, dword [ebp - 8]
add eax, 0x30
push eax
call fcn.005094b0
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x84], 0
jne 0x50320c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x408c]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x40a4]
mov dword [ebp - 0x14], ecx
push 4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x74]
add edx, 0x10
push edx
call fcn.00502b60
add esp, 0xc
push 4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x74]
add edx, 0x14
push edx
call fcn.00502b60
add esp, 0xc
mov eax, dword [ebp - 8]
cmp dword [eax + 0x5c], 1
jne 0x503273
push 2
push 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x74]
add ecx, 0x24
push ecx
call fcn.00502b60
add esp, 0xc
push 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x74]
add edx, 0x18
push edx
call fcn.00502b60
add esp, 0xc
cmp dword [ebp - 0x20], 0
jne 0x5032b1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x78]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x74]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x24
push ecx
call fcn.00501750
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.0053208b
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x5033c1
mov esi, esp
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
call edx
add esp, 8
cmp esi, esp
call fcn.00536e5e
mov dword [ebp - 0x38], eax
mov esi, esp
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x70]
add ecx, 0xe
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
call ecx
add esp, 0x10
cmp esi, esp
call fcn.00536e5e
test eax, eax
je 0x503328
mov dword [ebp - 0x20], 0xffffffff
cmp dword [ebp - 0x20], 0
jne 0x50334a
push 4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00502a70
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x50336c
push 4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00502a70
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x50338e
push 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00502a70
add esp, 0x10
mov dword [ebp - 0x20], eax
mov esi, esp
push 0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
call eax
add esp, 0x10
cmp esi, esp
call fcn.00536e5e
test eax, eax
je 0x5033c1
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x40b0]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx + 0x40b0], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.00536e5e
mov esp, ebp
pop ebp
ret