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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax*4 + 0x20a514c]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
test eax, eax
js 0x5103b3
cmp eax, 0x1194
jge 0x5103b3
mov ebx, dword [eax*4 + 0x20a514c]
movzx edi, word [ebx + 0x78]
cmp edi, 1
jne 0x51027d
cmp dword [ebx + 0x1e8], 0x20
je 0x5103b3
movsx eax, word [ebx + 0x146]
push eax
movsx eax, word [ebx + 0x144]
push eax
movsx eax, word [esi + 0x146]
push eax
movsx eax, word [esi + 0x144]
push eax
mov eax, dword [ebp + 0x10]
movzx eax, word [eax + 8]
push eax
call fcn.00507fe0
test al, al
je 0x5103b3
cmp edi, 1
jne 0x5102cd
mov eax, edi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
call fcn.005082f0
test al, al
je 0x5103b3
mov eax, dword [esi + 0x120]
add eax, dword [esi + 0xf4]
cdq
idiv dword [0xbdc088]
mov edx, dword [esi + 0x390]
add eax, dword [0xbdc084]
mov dword [esp + 0x30], eax
movzx ecx, word [edx + 0x110]
mov eax, ecx
test cx, cx
js 0x51033b
mov ecx, 0x2000
cmp ax, cx
jge 0x51033b
cmp byte [edx + 0x1c4], 0
je 0x51033b
movss xmm0, dword [edx + 0x12c]
ucomiss xmm0, dword [0x56a714]
lahf
test ah, 0x44
jnp 0x51033b
movzx ecx, word [edx + 0x12a]
mov eax, 0xaaaaaaab
mul ecx
mov edi, edx
shr edi, 2
jmp 0x51033d
xor edi, edi
push 0x1c6
push esi
call fcn.004b6100
add eax, edi
mov edi, dword [esp + 0x30]
add edi, eax
mov eax, dword [esi + 0x120]
add eax, dword [esi + 0xf4]
cdq
idiv dword [0xbdc090]
mov ecx, eax
add ecx, dword [0xbdc08c]
cmp ecx, dword [0xbdc094]
cmovg ecx, dword [0xbdc094]
mov dword [esp + 0x10], ecx
call fcn.00526930
cdq
mov ecx, 0x64
idiv ecx
cmp edx, edi
jl 0x5103be
mov edx, dword [ebx]
mov ecx, dword [esi]
push 0
push 0
push 0
push 0
call fcn.004e94a0
mov eax, dword [ebp + 0x10]
add esp, 0x10
movzx eax, word [eax + 8]
push 0
push dword [ebx]
push eax
push esi
call fcn.00517480
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x624]
xor ecx, ecx
add eax, 4
nop dword [eax]
mov dl, byte [eax]
cmp dl, 0xff
je 0x5103dc
cmp dl, 0x86
je 0x51038d
inc ecx
add eax, 0x1c
cmp ecx, 0x20
jl 0x5103d0
mov eax, dword [ebx + 0x624]
xor ecx, ecx
add eax, 4
mov dl, byte [eax]
cmp dl, 0xff
je 0x5103fc
cmp dl, 0xa5
je 0x51038d
inc ecx
add eax, 0x1c
cmp ecx, 0x20
jl 0x5103f0
mov eax, dword [ebp + 0x10]
mov ecx, 0xbf0bd4
movzx edi, word [eax + 8]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], edi
push eax
call fcn.00405650
mov eax, dword [esp + 0x40]
mov ecx, dword [0xbf0bd4]
cmp byte [eax + 0xd], 0
jne 0x510439
cmp edi, dword [eax + 0x10]
jge 0x51043b
mov eax, ecx
cmp eax, ecx
je 0x51077c
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x18], ecx
test ecx, ecx
js 0x51077c
cmp ecx, 0x100
jge 0x51077c
imul eax, ecx, 0x4c
cmp dword [eax + 0x6460e4], ecx
lea edi, [eax + 0x6460e4]
jne 0x51077c
test edi, edi
je 0x51077c
mov edx, dword [edi + 0x38]
cmp edx, 0xffffffff
je 0x5104a2
cmp dword [edi + 0x30], 2
jne 0x51049c
push 0
call fcn.0052d9f5
mov dword [esp + 0x40], edx
add esp, 4
mov edx, dword [edi + 0x38]
add edx, eax
mov dword [esp + 0x10], edx
jmp 0x5104a6
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x3c]
xor esi, esi
cmp eax, 0xffffffff
movzx ecx, ax
cmove ecx, esi
movzx eax, cx
mov dword [esp + 0x20], eax
movzx eax, ax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x40]
cmp eax, 0xffffffff
movzx ecx, ax
cmove ecx, esi
movzx eax, cx
mov dword [esp + 0x1c], eax
movzx eax, ax
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x44]
cmp eax, 0xffffffff
movzx ecx, ax
cmove ecx, esi
movzx eax, cx
mov dword [esp + 0x34], eax
movzx eax, ax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x48]
cmp eax, 0xffffffff
movzx ecx, ax
cmove ecx, esi
mov esi, dword [ebx + 0x624]
movzx eax, cx
xor ecx, ecx
mov dword [esp + 0x38], eax
movzx eax, ax
mov dword [esp + 0x30], eax
nop dword [eax + eax]
mov al, byte [esi + 4]
mov byte [esp + 0xd], al
cmp al, 0xff
je 0x510538
movzx eax, byte [esi + 5]
cmp eax, dword [edi + 4]
je 0x5105e9
inc ecx
add esi, 0x1c
cmp ecx, 0x20
jl 0x510520
xor eax, eax
mov dword [esp + 0x1c], eax
nop word [eax + eax]
mov esi, dword [ebx + 0x624]
mov ecx, edx
mov dl, byte [edi + 0x34]
add esi, eax
mov byte [esp + 0xe], dl
mov dl, byte [edi + 0x30]
mov byte [esp + 0xc], dl
cmp byte [esi + 4], 0xff
mov dl, byte [edi + 0x2c]
mov byte [esp + 0xf], dl
mov dl, byte [edi + 4]
mov byte [esp + 0xd], dl
mov edx, dword [esp + 0x10]
mov dword [esp + 0x20], 0
jne 0x5105d2
cmp byte [esp + 0xc], 2
jne 0x510708
push 0
mov dword [esp + 0x24], edx
call fcn.0052d9f5
add esp, 4
push edx
push eax
push 0
push dword [esp + 0x1c]
call fcn.0052d9b0
add esp, 0x10
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
call fcn.00546020
mov ecx, eax
test ecx, ecx
jg 0x510708
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add eax, 0x1c
mov dword [esp + 0x1c], eax
cmp eax, 0x380
jl 0x510550
jmp 0x510778
movzx eax, byte [esp + 0xd]
cmp dword [esp + 0x18], eax
jne 0x51062c
mov eax, dword [esp + 0x20]
cmp ax, word [esi + 0x14]
jb 0x510778
mov eax, dword [esp + 0x1c]
cmp ax, word [esi + 0x16]
jb 0x510778
mov eax, dword [esp + 0x34]
cmp ax, word [esi + 0x18]
jb 0x510778
mov eax, dword [esp + 0x38]
cmp ax, word [esi + 0x1a]
jb 0x510778
push esi
push ebx
mov ecx, 0x6460e0
call fcn.00478000
movzx eax, byte [esi + 4]
mov ecx, 0x6460e0
push eax
movzx eax, byte [esi + 5]
push 0
push 2
push 0
push eax
push ebx
call fcn.00478bb0
xor eax, eax
mov dword [esi + 4], 0xff
mov dword [esi + 0x10], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov cl, byte [edi + 0x2c]
mov dl, byte [edi + 4]
mov dword [esp + 0x1c], eax
mov al, byte [edi + 0x34]
mov byte [esp + 0xf], al
mov al, byte [edi + 0x30]
mov byte [esp + 0xe], al
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], dl
cmp al, 2
jne 0x510702
mov edi, dword [esp + 0x10]
push 0
mov dword [esp + 0x20], edi
call fcn.0052d9f5
add esp, 4
push edx
push eax
push 0
push edi
call fcn.0052d9b0
add esp, 0x10
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
call fcn.00546020
test eax, eax
jle 0x510778
mov dl, byte [esp + 0xd]
mov dh, byte [esp + 0xc]
mov cl, byte [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov byte [esi + 6], dh
mov dh, byte [esp + 0xe]
mov byte [esi + 7], dh
mov dh, byte [esp + 0xf]
push ecx
mov dword [esi + 0x10], eax
push eax
mov byte [esi + 4], cl
mov byte [esi + 5], dl
mov byte [esi + 8], dh
mov dword [esi + 0xc], edi
movzx eax, dl
jmp 0x51073c
mov eax, dword [esp + 0x10]
jmp 0x5106d2
mov dl, byte [esp + 0xd]
mov al, byte [esp + 0x18]
mov byte [esi + 5], dl
mov dl, byte [esp + 0xf]
mov byte [esi + 6], dl
mov dl, byte [esp + 0xc]
mov byte [esi + 7], dl
mov dl, byte [esp + 0xe]
push eax
mov byte [esi + 8], dl
mov edx, dword [esp + 0x24]
mov byte [esi + 4], al
movzx eax, byte [esp + 0x11]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ecx
push ecx
mov edi, dword [esp + 0x2c]
mov ecx, 0x6460e0
mov word [esi + 0x14], di
mov edi, dword [esp + 0x30]
push 0
mov word [esi + 0x16], di
mov edi, dword [esp + 0x38]
push 0
mov word [esi + 0x18], di
mov edi, dword [esp + 0x40]
push eax
push ebx
mov word [esi + 0x1a], di
call fcn.00478bb0
push esi
push ebx
mov ecx, 0x6460e0
call fcn.00477580
mov esi, dword [esp + 0x14]
movsx eax, word [ebx + 0x146]
movsx edx, word [ebx + 0x144]
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.00525a30
mov eax, dword [ebp + 0x10]
add esp, 4
movzx eax, word [eax + 8]
push 1
push ebx
push eax
push esi
call fcn.00517480
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc