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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x5c
cmp word [0x5b9030], 0
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x2c], eax
je 0x52dd60
cmp word [ecx + 0x89], 0
je 0x52dbcd
mov eax, dword [ecx + 0x83]
movsx edx, word [eax]
cmp edx, edi
jne 0x52dbc6
movsx eax, word [eax + 2]
cmp eax, esi
je 0x52dbcd
mov ecx, ebx
call fcn.0050e280
movzx eax, word [ebx + 0x1c]
movzx edx, word [ebx + 0x1a]
mov dword [esp + 0x48], esi
imul esi, dword [0x59ad30]
mov ecx, dword [0x5b39d0]
mov dword [esp + 0x44], edi
sar ax, 5
sar dx, 5
cwde
imul eax, dword [0x59ad30]
movsx edx, dx
add esi, edi
imul esi, esi, 0xe
add eax, edx
imul eax, eax, 0xe
movzx edx, byte [ecx + esi + 0xc]
cmp byte [ecx + eax + 0xc], dl
je 0x52dc31
cmp byte [ebx + 8], 0x41
je 0x52dc31
lea eax, [esp + 0x48]
mov ecx, ebx
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.0052cfe0
sub esp, 8
cmp bp, 1
je 0x52dc43
cmp word [esp + 0x2c], 1
je 0x52dda0
fld dword [ebx + 0x58]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fldz
fcompi st(1)
fstp st(0)
jae 0x52dd28
movzx eax, byte [ebx + 0x3b]
cmp al, 0xd
je 0x52dd28
movzx edx, byte [ebx + 9]
cmp dl, 8
je 0x52dd28
cmp byte [ebx + 0x42], 0xe
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
jne 0x52dc89
cmp al, 0xe
je 0x52de50
mov dword [esp], 0
mov ecx, 0x5b8fe0
add byte [0x5c9800], 1
call fcn.004dd280
xor eax, eax
mov byte [ebx + 0x42], 0xe
mov ecx, ebx
sub esp, 4
mov word [ebx + 0x43], ax
movsx eax, word [esp + 0x2c]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x1c], eax
movsx eax, word [esp + 0x38]
mov dword [esp + 0x18], eax
movsx eax, bp
mov dword [esp + 0x14], eax
movsx eax, word [esp + 0x34]
mov dword [esp + 0x10], eax
movsx eax, word [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.0052d7d0
xor edx, edx
mov byte [ebx + 0x3b], 0xe
mov byte [0x5c9800], 0
sub esp, 0x20
mov word [ebx + 0x3c], dx
test eax, eax
jne 0x52de20
mov word [ebx + 0x45], si
mov word [ebx + 0x3e], si
mov word [ebx + 0x47], di
mov word [ebx + 0x40], di
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
cmp word [esp + 0x28], 4
jne 0x52dd3a
cmp bp, 1
jg 0x52de00
cmp byte [0x5b3021], 0
je 0x52dd1b
mov dword [0x5b3024], 0
mov byte [0x5b3021], 0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov eax, dword [ecx]
mov dword [esp], 1
xor ebp, ebp
call dword [eax + 0x78]
xor eax, eax
mov word [ebx + 0x43], bp
sub esp, 4
mov word [ebx + 0x45], di
mov word [ebx + 0x3e], di
mov word [ebx + 0x47], si
mov word [ebx + 0x40], si
mov byte [ebx + 0x42], 0xe
mov byte [ebx + 0x3b], 0xe
mov word [ebx + 0x3c], ax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
movsx eax, word [esp + 0x38]
mov ecx, ebx
mov dword [esp + 0x8c], 1
mov dword [esp + 0x88], eax
movsx eax, bp
mov dword [esp + 0x84], eax
movsx eax, word [esp + 0x34]
mov dword [esp + 0x80], eax
movsx eax, word [esp + 0x28]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x70], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0052d7d0
mov ecx, 0x5b8fe0
call fcn.004dd050
cmp byte [0x5b3021], 0
je 0x52dd1b
jmp 0x52dd43
cmp word [esp + 0x28], 4
je 0x52dee0
movzx eax, word [ebx + 0x52]
mov word [ebx + 0x45], ax
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x54]
mov word [ebx + 0x47], ax
mov word [ebx + 0x40], ax
jmp 0x52dd1b
movsx eax, word [ebx + 0x45]
mov word [esp + 0x3e], ax
cmp eax, esi
jne 0x52dc89
movsx ecx, word [ebx + 0x47]
mov eax, ecx
cmp ecx, edi
jne 0x52dc89
movzx ecx, word [esp + 0x3e]
mov word [ebx + 0x40], ax
mov word [ebx + 0x3e], cx
cmp dl, 1
je 0x52dc89
cmp word [esp + 0x28], 4
mov ecx, ebx
sete dl
xor eax, eax
sub bp, 1
setg al
and eax, edx
mov dword [esp], eax
call fcn.0052c510
cmp dword [ebx + 0x77], 0
push ecx
jne 0x52dd1b
movsx eax, byte [ebx + 0x22]
imul eax, eax, 0x84
add eax, dword [0x5b6a8c]
cmp byte [eax - 0x6d], 0x53
je 0x52df15
movzx eax, word [ebx + 0x1a]
cmp word [ebx + 0x12], ax
je 0x52def7
mov byte [ebx + 9], 3
jmp 0x52dd1b
mov ecx, 0x5b8fe0
call fcn.004dcf90
cmp al, 4
jne 0x52de2c
jmp 0x52dd0b
movzx eax, word [ebx + 0x1c]
cmp word [ebx + 0x14], ax
jne 0x52dece
movzx eax, byte [ebx + 0xa]
mov byte [ebx + 0xe], 0
mov byte [ebx + 9], 1
mov byte [ebx + 0xd], al
jmp 0x52dd1b
cmp byte [ebx + 9], 7
jne 0x52dec4
jmp 0x52dd1b