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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x7c
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0x9c]
mov ebp, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0xac]
test eax, eax
js 0x52d940
mov eax, dword [0x59ad30]
cmp eax, dword [esp + 0x90]
jle 0x52d940
mov edi, dword [esp + 0x94]
test edi, edi
js 0x52d940
mov edi, dword [0x59ad2c]
mov dword [esp + 0x5c], edi
cmp edi, dword [esp + 0x94]
jle 0x52d940
fld dword [ebx + 0x58]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fldz
fcompi st(1)
fstp st(0)
jae 0x52d940
cmp byte [ebx + 0x3b], 0xd
je 0x52d940
cmp byte [ebx + 9], 8
je 0x52d940
lea edi, [edx - 1]
cmp di, 0xe
ja 0x52d940
cmp cx, 1
je 0x52d9b0
cmp si, 1
jne 0x52d9b0
sub eax, 1
mov esi, dword [esp + 0x5c]
movsx ecx, cx
movsx edx, dx
mov dword [esp + 0x3c], eax
movsx eax, word [esp + 0x58]
sub esi, 1
mov dword [esp + 0x24], ecx
mov ecx, 0x5b8fe0
mov dword [esp + 0x28], eax
movsx eax, bp
mov dword [esp + 0x20], eax
movsx eax, byte [ebx + 8]
mov dword [esp + 0x40], esi
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x29]
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1e]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], edx
movsx eax, word [eax + 0xe]
mov dword [esp + 0x10], eax
movsx eax, word [ebx + 0x54]
mov dword [esp + 0xc], eax
movsx eax, word [ebx + 0x52]
mov dword [esp + 8], eax
movzx eax, word [ebx + 0x1c]
sar ax, 5
cwde
mov dword [esp + 4], eax
movzx eax, word [ebx + 0x1a]
sar ax, 5
cwde
mov dword [esp], eax
call fcn.004dd5a0
mov eax, 1
sub esp, 0x44
jmp 0x52d98b
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp], 2
call dword [eax + 0x78]
mov ecx, ebx
sub esp, 4
call fcn.00524270
test eax, eax
je 0x52d998
movzx eax, byte [ebx + 0x64]
cmp al, 4
je 0x52dab0
cmp al, 5
je 0x52da90
cmp al, 2
je 0x52da70
mov byte [ebx + 0x9f], 0
mov eax, 1
mov byte [ebx + 0x9c], 0
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov ecx, 0xffffffff
mov dword [ebx + 0x42], 0xff000000
mov word [ebx + 0x46], cx
mov byte [ebx + 0x48], 0xff
jmp 0x52d978
movsx eax, byte [ebx + 0x22]
imul eax, eax, 0x84
add eax, dword [0x5b6a8c]
cmp byte [eax - 0x6d], 0x53
jne 0x52d9e3
movzx eax, byte [ebx + 0xcc]
cmp al, 2
jg 0x52dad0
test al, al
jg 0x52db20
jne 0x52db18
movsx eax, word [esp + 0x58]
movsx ecx, cx
movsx edx, dx
movsx esi, si
mov dword [esp + 0x14], ecx
mov ecx, ebx
mov dword [esp + 0x18], eax
movsx eax, bp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x1c], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call fcn.0052d1d0
sub esp, 0x20
test eax, eax
setne al
movzx eax, al
cmp word [ebx + 0x89], 0
je 0x52d98b
mov edx, dword [ebx + 0x77]
test edx, edx
jne 0x52d98b
mov ecx, ebx
mov dword [esp + 0x58], eax
call fcn.0050e280
mov eax, dword [esp + 0x58]
jmp 0x52d98b
cmp byte [ebx + 0x42], 0x11
je 0x52d978
mov ecx, ebx
call fcn.00524c70
jmp 0x52d978
cmp byte [ebx + 0x42], 0x17
je 0x52d978
mov ecx, ebx
call fcn.00525180
jmp 0x52d978
cmp byte [ebx + 0x42], 0x14
je 0x52d978
mov ecx, ebx
call fcn.005247b0
jmp 0x52d978
cmp al, 3
jne 0x52db18
sub esi, 2
cmp si, 1
jbe 0x52db3a
movzx eax, word [ebx + 0x1c]
mov ecx, ebx
sar ax, 5
cwde
mov dword [esp + 4], eax
movzx eax, word [ebx + 0x1a]
sar ax, 5
cwde
mov dword [esp], eax
call fcn.00531bb0
sub esp, 8
cmp word [ebx + 0x89], 0
je 0x52db33
xor eax, eax
jmp 0x52da48
xor eax, eax
jmp 0x52da3a
sub esi, 2
cmp si, 1
ja 0x52db33
mov ecx, 0x5b8fe0
call fcn.004dd050
xor eax, eax
jmp 0x52d98b
mov ecx, 0x5b8fe0
call fcn.004dd050
jmp 0x52dadd