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

Disassembly:
push ebp
mov ecx, 0x5e8c00
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x18], eax
call fcn.005006b0
mov edx, eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x6c]
mov eax, dword [eax + 4]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x508327
cmp ebx, 0xffffffff
mov dword [esp + 0x10], 0
sete byte [esp + 0x1e]
xor edi, edi
jmp 0x50816f
mov eax, dword [esp + 0x14]
mov byte [eax + ebx + 0x11d], dl
movsx eax, dl
lea edx, [eax - 0x30]
cmp dl, 9
ja 0x5081e7
lea edx, [edi + edi*4]
lea edi, [eax + edx*2 - 0x30]
cmp edi, dword [esp + 0x58]
jg 0x508205
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jae 0x5082b0
add eax, 1
mov dword [esi + 8], eax
add dword [esp + 0x10], 1
mov ebp, 0xffffffff
cmp ebp, 0xffffffff
sete dl
test esi, esi
setne bl
and bl, dl
jne 0x508220
mov ebx, edx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x508197
cmp byte [esp + 0x1e], 0
jne 0x508238
xor bl, byte [esp + 0x1e]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x5c]
jae 0x5081e7
test bl, bl
je 0x5081e7
test esi, esi
je 0x5081b5
test dl, dl
jne 0x508278
mov edx, ebp
movzx ebx, dl
mov ecx, dword [esp + 0x14]
movsx eax, byte [ecx + ebx + 0x11d]
test al, al
jne 0x508136
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
cmp eax, 0x500080
jne 0x508290
cmp dl, 0x2a
jne 0x508128
mov eax, dword [esp + 0x10]
test eax, eax
setne dl
cmp edi, dword [esp + 0x54]
setge al
test dl, al
je 0x508205
cmp edi, dword [esp + 0x58]
jle 0x5082c0
mov eax, dword [esp + 0x64]
mov edx, ebp
or dword [eax], 4
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x28
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
jae 0x5082d8
xor ebx, ebx
jmp 0x508184
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
cmp dword [eax + 8], ecx
jb 0x50819b
mov ecx, eax
mov eax, dword [eax]
mov byte [esp + 0x1f], dl
call dword [eax + 0x24]
movzx edx, byte [esp + 0x1f]
cmp eax, 0xffffffff
jne 0x50819b
mov dword [esp + 0x18], 0
xor ebx, 1
jmp 0x50819b
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jae 0x508300
movzx ebx, byte [eax]
mov edx, ebx
jmp 0x5081ba
movsx edx, dl
mov dword [esp + 4], 0x2a
mov dword [esp], edx
call eax
sub esp, 8
mov edx, eax
jmp 0x5081de
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
jmp 0x508165
mov eax, dword [esp + 0x50]
mov edx, ebp
mov dword [eax], edi
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x28
mov eax, dword [esi]
mov byte [esp + 0x1f], dl
mov ecx, esi
call dword [eax + 0x24]
movzx edx, byte [esp + 0x1f]
cmp eax, 0xffffffff
mov eax, 0
cmove esi, eax
cmovne ebx, eax
jmp 0x508184
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, 0xffffffff
je 0x508316
mov edx, eax
movzx ebx, al
jmp 0x5081ba
mov ebx, 0xff
mov edx, 0xffffffff
xor esi, esi
jmp 0x5081ba
call fcn.005da1b0
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [esp + 0xd8]
mov esi, dword [esp + 0xdc]
mov dword [esp + 0x44], ecx
mov ecx, 0x5e8ac8
mov ebx, dword [esp + 0xe0]
mov ebp, dword [esp + 0xd0]
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0xd4]
mov dword [esp + 0x40], esi
call fcn.005006b0
mov edx, dword [ebx + 0x6c]
mov ecx, dword [edx + 4]
cmp eax, dword [edx + 8]
jae 0x5085b2
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x5085b2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x62a300
mov dword [esp + 4], 0x629e9c
mov dword [esp], eax
call fcn.005c3700
test eax, eax
je 0x5085b2
mov eax, dword [eax + 8]
mov esi, dword [eax + 0x34]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x68], esi
mov esi, dword [eax + 0x3c]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x58], esi
mov esi, dword [eax + 0x44]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0x30]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x4c], esi
mov esi, dword [eax + 0x50]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x60], esi
mov esi, dword [eax + 0x54]
mov dword [esp + 0x64], edx
mov edx, dword [eax + 0x60]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x84], esi
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x74]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xc], esi
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x58]
mov dword [esp], ebp
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x74], 0
mov dword [esp + 0xac], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 7
call fcn.0050b250
sub esp, 0x24
mov ebp, eax
mov edi, edx
mov esi, eax
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x508540
mov eax, dword [esp + 0xe4]
or dword [eax], 4
cmp edi, 0xffffffff
sete bl
test ebp, ebp
setne dl
and dl, bl
jne 0x50855d
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x40], 0xffffffff
sete al
test edx, edx
je 0x508518
test al, al
jne 0x508590
cmp bl, al
jne 0x508526
mov eax, dword [esp + 0xe4]
or dword [eax], 2
add esp, 0xbc
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov edx, dword [esp + 0x70]
cmp edi, 0xffffffff
mov eax, dword [esp + 0xe8]
sete bl
test ebp, ebp
mov dword [eax + 0x18], edx
setne dl
and dl, bl
je 0x508504
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 8], eax
jb 0x508504
mov eax, dword [ebp]
mov byte [esp + 0x44], dl
mov ecx, ebp
mov esi, 0
call dword [eax + 0x24]
movzx edx, byte [esp + 0x44]
cmp eax, 0xffffffff
cmove ebx, edx
cmovne esi, ebp
jmp 0x508504
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov edx, dword [ecx + 0xc]
cmp dword [ecx + 8], edx
jb 0x508518
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp eax, 0xffffffff
sete al
jmp 0x508518
call fcn.005da1b0
nop
nop
nop
nop
nop
nop
nop
nop
nop