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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x2c]
mov eax, dword [esi + 0x68]
mov dword [esp + 0x94], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x6c]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x74], eax
mov dword [esp + 0x8c], ecx
mov ecx, dword [esi + 0x18]
lea eax, [ecx - 1]
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x14]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov ebx, eax
mov edi, dword [esi + 0x1c]
lea eax, [edi - 1]
or eax, 0x3fff
sar ebx, 0xe
inc eax
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esp + 0x74]
sar eax, 0xe
mov dword [esp + 0x84], eax
lea eax, [edx + 1]
mov edx, dword [esi + 0x10]
shl eax, 0xe
sub eax, edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x54]
shl eax, 0xe
sub ecx, eax
add ecx, 0x4000
mov dword [esp + 0xc8], ecx
lea ecx, [ebx + 1]
shl ecx, 0xe
sub ecx, edx
mov edx, dword [esp + 0x84]
shl edx, 0xe
sub edi, edx
add edi, 0x4000
mov dword [esp + 0xc4], edi
mov eax, dword [esp + 0x94]
imul dword [esp + 0x8c]
shrd eax, edx, 0xe
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
fild dword [esp + 0x64]
mov edx, eax
sub edx, ebx
cmp edx, 2
fdivr qword [0x5d6138]
fstp qword [esp + 0xb0]
jge 0x53e5dc
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x54]
sub edx, dword [esp + 0x74]
cmp edx, 2
jge 0x53e5f6
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x10]
mov dword [esp + 0xa8], edx
cmp ebx, eax
mov edx, dword [esi + 0x44]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x80], ebx
jge 0x53ef46
mov eax, dword [esi + 8]
imul eax, dword [esp + 0x80]
mov edi, dword [esi + 4]
mov ecx, dword [esp + 0x74]
add eax, edi
mov edi, dword [esi + 0x40]
shl ecx, 2
add eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
imul dword [esp + 0x8c]
shrd eax, edx, 0xe
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esp + 0x5c]
mov ecx, eax
mov eax, dword [esp + 0x2c]
lea eax, [edx + eax - 1]
or eax, 0x3fff
sar ecx, 0xe
inc eax
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esp + 0x2c]
mov ebx, eax
lea eax, [ecx + 1]
shl eax, 0xe
sub eax, edx
sar ebx, 0xe
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
mov edx, ebx
shl edx, 0xe
sub eax, edx
mov edx, dword [esp + 0x2c]
lea eax, [eax + edx + 0x4000]
mov dword [esp + 0x68], eax
mov eax, ebx
sub eax, ecx
cmp eax, 2
mov dword [esp + 0x50], ecx
mov dword [esp + 0xac], eax
jge 0x53e6cf
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x58], ecx
push 0
push 0
call dword [0x5d2604]
push 0x300
push 0
mov dword [esp + 0xe8], eax
call dword [0x5d2604]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x64]
add esp, 0x10
cmp eax, ecx
mov dword [esp + 0x64], eax
jge 0x53eec4
dec ebx
mov dword [esp + 0x38], ebx
jmp 0x53e720
mov edi, dword [esp + 0x4c]
jmp 0x53e720
mov eax, dword [esp + 0x44]
imul dword [esp + 0x94]
shrd eax, edx, 0xe
mov dword [esp + 0x90], eax
mov esi, dword [esp + 0x90]
mov eax, edi
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov ecx, eax
sar ecx, 0xe
lea eax, [esi + edi - 1]
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
lea edx, [ecx + 1]
shl edx, 0xe
sub edx, edi
sar eax, 0xe
mov dword [esp + 0x60], edx
mov edx, eax
shl edx, 0xe
mov ebx, esi
sub ebx, edx
mov dword [esp + 0x34], eax
sub eax, ecx
cmp eax, 2
lea edx, [ebx + edi + 0x4000]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x88], eax
jge 0x53e7a2
mov dword [esp + 0x60], esi
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
xor ebx, ebx
inc edx
cmp edx, eax
mov esi, ebx
mov edi, ebx
mov dword [esp + 0x1c], ebx
jge 0x53e84a
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x38]
mov dword [esp + 0xc], eax
imul eax, edx
add eax, dword [ecx + 0x34]
mov ecx, dword [esp + 0x38]
sub ecx, edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x48], eax
nop
mov edx, dword [esp + 0x34]
inc ecx
dec edx
cmp ecx, edx
jge 0x53e831
sub edx, ecx
lea eax, [eax + ecx*4 + 2]
mov dword [esp + 0x28], edx
movzx ecx, byte [eax - 2]
movzx edx, byte [eax - 1]
shl ecx, 0xe
add esi, ecx
movzx ecx, byte [eax]
shl edx, 0xe
add edi, edx
mov edx, dword [esp + 0x1c]
shl ecx, 0xe
add edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
movzx edx, byte [eax + 1]
shl edx, 0xe
add ebx, edx
add eax, 4
dec ecx
mov dword [esp + 0x28], ecx
jne 0x53e7f4
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add eax, edx
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], edx
jne 0x53e7e0
mov edx, dword [ebp + 0x2c]
lea eax, [ecx*4]
mov ecx, dword [edx + 0x38]
imul ecx, dword [esp + 0x50]
add ecx, eax
mov dword [esp + 0x28], eax
add ecx, dword [edx + 0x34]
mov eax, dword [esp + 0x60]
imul dword [esp + 0x58]
shrd eax, edx, 0xe
mov dword [esp + 0xa4], eax
movzx edx, byte [ecx]
mov eax, dword [esp + 0xa4]
imul edx, eax
add esi, edx
movzx edx, byte [ecx + 1]
imul edx, eax
add edi, edx
movzx edx, byte [ecx + 2]
imul edx, eax
add dword [esp + 0x1c], edx
movzx eax, byte [ecx + 3]
imul eax, dword [esp + 0xa4]
mov ecx, dword [ebp + 0x2c]
add ebx, eax
cmp dword [esp + 0x88], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebx
jle 0x53e93c
mov edx, dword [ecx + 0x38]
imul edx, dword [esp + 0x50]
mov eax, dword [esp + 0x34]
lea edx, [edx + eax*4]
mov eax, dword [ecx + 0x34]
lea edx, [edx + eax - 4]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x24]
imul dword [esp + 0x58]
shrd eax, edx, 0xe
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xc]
movzx edx, byte [eax]
mov eax, dword [esp + 0x9c]
imul edx, eax
add esi, edx
mov edx, dword [esp + 0xc]
movzx edx, byte [edx + 1]
imul edx, eax
add edi, edx
mov edx, dword [esp + 0xc]
movzx edx, byte [edx + 2]
imul edx, eax
add dword [esp + 0x1c], edx
mov eax, dword [esp + 0xc]
movzx edx, byte [eax + 3]
imul edx, dword [esp + 0x9c]
add ebx, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebx
cmp dword [esp + 0xac], 1
jle 0x53ea22
mov ecx, dword [ecx + 0x38]
imul ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x28]
mov eax, dword [ebp + 0x2c]
add ecx, dword [eax + 0x34]
mov eax, dword [esp + 0x60]
imul dword [esp + 0x68]
shrd eax, edx, 0xe
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xa0]
movzx edx, byte [ecx]
imul edx, eax
add esi, edx
movzx edx, byte [ecx + 1]
imul edx, eax
add edi, edx
movzx edx, byte [ecx + 2]
imul edx, eax
add dword [esp + 0x1c], edx
movzx eax, byte [ecx + 3]
imul eax, dword [esp + 0xa0]
add ebx, eax
cmp dword [esp + 0x88], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebx
jle 0x53ea1f
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax + 0x38]
imul ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
lea ecx, [ecx + edx*4]
mov edx, dword [eax + 0x34]
lea ecx, [ecx + edx - 4]
mov eax, dword [esp + 0x24]
imul dword [esp + 0x68]
shrd eax, edx, 0xe
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x98]
movzx edx, byte [ecx]
imul edx, eax
add esi, edx
movzx edx, byte [ecx + 1]
imul edx, eax
add edi, edx
movzx edx, byte [ecx + 2]
imul edx, eax
add dword [esp + 0x1c], edx
movzx eax, byte [ecx + 3]
imul eax, dword [esp + 0x98]
add ebx, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebx
mov ecx, dword [ebp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
inc eax
dec edx
cmp eax, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x6c], edx
jge 0x53eb29
mov edx, dword [ecx + 0x38]
mov ecx, dword [ecx + 0x34]
mov eax, edx
imul edx, dword [esp + 0x50]
imul eax, dword [esp + 0x38]
add eax, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x48], eax
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x10]
add ecx, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
lea ecx, [ecx + edx*4 + 2]
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x10]
sub ecx, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x6c]
sub ecx, edx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x48]
movzx edx, byte [edx + eax]
mov ecx, dword [esp + 0x58]
imul edx, ecx
add esi, edx
mov edx, dword [esp + 0xc]
movzx edx, byte [edx - 1]
imul edx, ecx
add edi, edx
mov edx, dword [esp + 0xc]
movzx edx, byte [edx]
imul edx, ecx
add dword [esp + 0x1c], edx
mov ecx, dword [esp + 0xc]
movzx edx, byte [ecx + 1]
imul edx, dword [esp + 0x58]
mov ecx, dword [esp + 0xac]
add ebx, edx
cmp ecx, 1
jle 0x53eb03
mov ecx, dword [esp + 0x68]
movzx edx, byte [eax]
imul edx, ecx
add esi, edx
movzx edx, byte [eax + 1]
imul edx, ecx
add edi, edx
movzx edx, byte [eax + 2]
imul edx, ecx
add dword [esp + 0x1c], edx
movzx ecx, byte [eax + 3]
imul ecx, dword [esp + 0x68]
add ebx, ecx
add dword [esp + 0xc], 4
mov ecx, dword [esp + 0x10]
add eax, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x53ea91
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
inc edx
cmp edx, eax
jge 0x53ebfd
mov eax, dword [ecx + 0x38]
mov dword [esp + 0xc], eax
imul eax, edx
add eax, dword [ecx + 0x34]
mov ecx, dword [esp + 0x38]
sub ecx, edx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x28]
movzx edx, byte [edx + eax]
mov ecx, dword [esp + 0x60]
imul edx, ecx
add esi, edx
mov edx, dword [esp + 0x28]
movzx edx, byte [edx + eax + 1]
imul edx, ecx
add edi, edx
mov edx, dword [esp + 0x28]
movzx edx, byte [edx + eax + 2]
imul edx, ecx
add dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x28]
movzx edx, byte [ecx + eax + 3]
imul edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x88]
add ebx, edx
cmp ecx, 1
jle 0x53ebdc
mov ecx, dword [esp + 0x34]
movzx edx, byte [eax + ecx*4 - 4]
mov ecx, dword [esp + 0x24]
imul edx, ecx
add esi, edx
mov edx, dword [esp + 0x34]
movzx edx, byte [eax + edx*4 - 3]
imul edx, ecx
add edi, edx
mov edx, dword [esp + 0x34]
movzx edx, byte [eax + edx*4 - 2]
imul edx, ecx
add dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x34]
movzx edx, byte [eax + ecx*4 - 1]
imul edx, dword [esp + 0x24]
add ebx, edx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add eax, edx
dec ecx
mov dword [esp + 0x10], ecx
jne 0x53eb51
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x44]
mov ecx, 0x4000
cmp eax, ecx
jne 0x53ec14
cmp dword [esp + 0x40], ecx
je 0x53edb6
mov eax, dword [ebp + 0x34]
test eax, eax
jne 0x53edb6
mov eax, dword [esp + 0x90]
imul dword [esp + 0x5c]
push 0
push ecx
push edx
push eax
call fcn.005c4520
mov ecx, edx
test ecx, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
jl 0x53ee49
jg 0x53ec50
test eax, eax
jbe 0x53ee49
mov eax, dword [esp + 0x44]
imul dword [esp + 0x40]
shrd eax, edx, 0xe
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xcc]
imul eax, eax, 0xff
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
movzx eax, al
push ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
mov eax, esi
cdq
push ecx
push edx
push eax
call fcn.005c4520
mov edx, dword [esp + 0x3c]
movzx edx, byte [edx]
movzx eax, al
sub eax, edx
imul eax, dword [esp + 0x24]
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edx
jns 0x53ecbb
xor ecx, ecx
jmp 0x53ecc8
cmp ecx, 0xff
jle 0x53ecc8
mov ecx, 0xff
mov esi, dword [esp + 0x3c]
mov byte [esi], cl
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
mov eax, edi
cdq
push ecx
push edx
push eax
call fcn.005c4520
movzx edx, byte [esi + 1]
movzx eax, al
sub eax, edx
imul eax, dword [esp + 0x24]
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edx
jns 0x53ed07
xor ecx, ecx
jmp 0x53ed14
cmp ecx, 0xff
jle 0x53ed14
mov ecx, 0xff
mov eax, dword [esp + 0x1c]
movzx edi, byte [esi + 2]
mov byte [esi + 1], cl
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
cdq
push ecx
push edx
push eax
call fcn.005c4520
movzx eax, al
sub eax, edi
imul eax, dword [esp + 0x24]
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x53ed52
xor ecx, ecx
jmp 0x53ed5f
cmp ecx, 0xff
jle 0x53ed5f
mov ecx, 0xff
movzx edi, byte [esi + 3]
mov byte [esi + 2], cl
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
mov eax, ebx
cdq
push ecx
push edx
push eax
call fcn.005c4520
movzx eax, al
sub eax, edi
imul eax, dword [esp + 0x24]
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x53eda1
xor ecx, ecx
mov byte [esi + 3], cl
jmp 0x53ee4d
cmp ecx, 0xff
jle 0x53edae
mov ecx, 0xff
mov byte [esi + 3], cl
jmp 0x53ee4d
fild dword [esp + 0x14]
fmul qword [esp + 0xb0]
fstp qword [esp + 0x6c]
fld qword [esp + 0x6c]
fistp dword [esp + 0xb8]
fild dword [esp + 0x18]
mov dl, byte [esp + 0xb8]
mov eax, dword [esp + 0x3c]
mov byte [eax], dl
fmul qword [esp + 0xb0]
fstp qword [esp + 0x6c]
fld qword [esp + 0x6c]
fistp dword [esp + 0xd4]
fild dword [esp + 0x1c]
mov cl, byte [esp + 0xd4]
mov byte [eax + 1], cl
fmul qword [esp + 0xb0]
fstp qword [esp + 0x6c]
fld qword [esp + 0x6c]
fistp dword [esp + 0xdc]
fild dword [esp + 0x20]
mov dl, byte [esp + 0xdc]
mov byte [eax + 2], dl
fmul qword [esp + 0xb0]
fstp qword [esp + 0x6c]
fld qword [esp + 0x6c]
fistp dword [esp + 0xc0]
mov cl, byte [esp + 0xc0]
mov byte [eax + 3], cl
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x64]
add esi, 4
add eax, 0xfffffffe
cmp ecx, eax
mov dword [esp + 0x3c], esi
jne 0x53ee97
mov eax, dword [esp + 0x44]
imul dword [esp + 0x94]
shrd eax, edx, 0xe
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0xd0]
add eax, edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x44], eax
jmp 0x53eeb0
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x90]
add edx, eax
mov dword [esp + 0x44], 0x4000
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x54]
inc ecx
cmp ecx, eax
mov dword [esp + 0x64], ecx
jl 0x53e70e
mov esi, dword [ebp + 0x2c]
mov ecx, dword [esp + 0xd8]
push 0xffffffffffffffff
push ecx
call dword [0x5d2604]
mov edi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
lea eax, [edi - 2]
add esp, 8
cmp ecx, eax
jne 0x53ef20
mov eax, dword [esp + 0x40]
imul dword [esp + 0x8c]
shrd eax, edx, 0xe
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0xbc]
add eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x40], eax
jmp 0x53ef36
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x5c]
add edx, eax
mov dword [esp + 0x40], 0x4000
mov dword [esp + 0x2c], edx
inc ecx
cmp ecx, edi
mov dword [esp + 0x80], ecx
jl 0x53e610
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30