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

Disassembly:
sub esp, 0x9c
push ebx
xor eax, eax
mov ebx, ecx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x30], ebx
lea edx, [esp + 0x38]
mov dword [esp + 0x5c], eax
mov ecx, edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
call fcn.0053d387
test eax, eax
jne 0x53f390
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp edx, 2
jne 0x53e98a
cmp ecx, eax
jne 0x53e98a
jmp 0x53e95d
mov eax, dword [esp + 0x28]
mov ecx, edi
or eax, dword [esp + 0x2c]
je 0x53e971
call fcn.0053d51e
test eax, eax
jne 0x53f390
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.0053d387
test eax, eax
je 0x53e944
jmp 0x53f390
lea edx, [esp + 0x38]
call fcn.0053d387
test eax, eax
jne 0x53f390
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
cmp edx, 3
jne 0x53ea1d
cmp ecx, eax
jne 0x53ea1d
lea ecx, [esp + 0x7c]
call fcn.0053d1d5
push dword [esp + 0xc4]
mov eax, ecx
mov edx, edi
push dword [esp + 0xc4]
mov ecx, dword [esp + 0xb8]
push eax
push dword [ebx + 0x34]
push dword [ebx + 0x30]
push 8
push dword [esp + 0xcc]
call fcn.0053e688
mov ecx, dword [esp + 0x9c]
mov esi, eax
mov eax, dword [esp + 0xd4]
add esp, 0x1c
mov edx, dword [esp + 0xc0]
mov dword [eax], ecx
lea ecx, [esp + 0x7c]
call fcn.0053d1f8
test esi, esi
je 0x53ea02
mov eax, esi
jmp 0x53f390
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.0053d387
test eax, eax
jne 0x53f390
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0xbc]
cmp edx, 4
jne 0x53ea88
xor eax, eax
cmp ecx, eax
jne 0x53ea88
push ebp
lea eax, [esp + 0x50]
mov edx, edi
push eax
mov eax, dword [esp + 0xc0]
lea esi, [ebx + 0x38]
push esi
mov ecx, ebx
push dword [eax]
push dword [esp + 0xc4]
push 0x40000000
call fcn.0053e575
add esp, 0x18
test eax, eax
jne 0x53f390
mov eax, dword [ebx + 0x30]
lea edx, [esp + 0x38]
add dword [esi], eax
mov ecx, edi
mov eax, dword [ebx + 0x34]
adc dword [esi + 4], eax
call fcn.0053d387
test eax, eax
jne 0x53f390
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, edx
or eax, ecx
jne 0x53ea95
xor eax, eax
jmp 0x53f390
cmp edx, 5
jne 0x53f38d
xor eax, eax
cmp ecx, eax
jne 0x53f38d
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.0053d4c0
test eax, eax
jne 0x53f390
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x40], eax
jmp 0x53ee4b
mov esi, dword [esp + 0x38]
mov eax, esi
or eax, dword [esp + 0x3c]
je 0x53ee63
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.0053d387
test eax, eax
jne 0x53f390
mov eax, dword [edi + 4]
xor edx, edx
cmp dword [esp + 0x2c], edx
ja 0x53f38d
mov ecx, dword [esp + 0x28]
jb 0x53eb17
cmp ecx, eax
ja 0x53f38d
cmp dword [esp + 0x3c], edx
ja 0x53ee44
cmp esi, 0x100
jae 0x53ee44
sub esi, 0xe
je 0x53edc8
sub esi, 1
je 0x53edaa
push 2
pop edx
sub esi, edx
je 0x53ec1d
sub esi, 1
je 0x53ec18
sub esi, edx
je 0x53ebf2
sub esi, 1
jne 0x53ee44
lea esi, [ebx + 0x54]
mov edx, ebp
mov ecx, esi
call fcn.0053d19e
mov edx, dword [esp + 0x1c]
mov ecx, edi
push ebp
push esi
call fcn.0053d60e
pop ecx
pop ecx
test eax, eax
jne 0x53f390
mov eax, dword [edi + 4]
test eax, eax
je 0x53f38d
dec eax
mov dword [edi + 4], eax
mov eax, dword [edi]
mov cl, byte [eax]
inc eax
test cl, cl
mov dword [edi], eax
mov ecx, edi
je 0x53ebe1
lea edx, [esp + 0x48]
call fcn.0053d4c0
test eax, eax
jne 0x53f390
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x48]
cmp ecx, dword [eax]
jae 0x53f38d
mov edx, dword [esp + 0xb4]
mov eax, dword [edx + ecx*8]
mov dword [esp + 0x6c], eax
mov eax, dword [edx + ecx*8 + 4]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x70], eax
mov edx, dword [esp + 0x1c]
push ebp
push esi
call fcn.0053d6d4
pop ecx
jmp 0x53edba
lea ecx, [ebx + 0x5c]
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0x1c]
push ebp
push dword [eax]
push dword [esp + 0xbc]
push edi
call fcn.0053e7b5
add esp, 0x10
jmp 0x53edbb
lea ecx, [ebx + 0x64]
jmp 0x53ebf5
test eax, eax
je 0x53f38d
dec eax
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dl, byte [eax]
mov byte [esp + 0x12], dl
lea edx, [eax + 1]
cmp byte [esp + 0x12], 0
mov dword [esp + 0x34], edx
mov dword [edi], edx
jne 0x53ec46
lea eax, [ecx - 1]
jmp 0x53ec7e
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.0053d4c0
test eax, eax
jne 0x53f390
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx]
jae 0x53f38d
mov edx, dword [esp + 0xb4]
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
test al, 1
jne 0x53f38d
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp]
mov ecx, esi
lea eax, [eax*4 + 4]
push eax
push ebp
call dword [0x66b6fc]
call esi
mov dword [ebx + 0x74], eax
pop ecx
pop ecx
test eax, eax
je 0x53efc7
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x53ecc3
xor eax, eax
mov ebx, eax
mov dword [esp + 0x30], ebx
jmp 0x53ecf7
mov esi, dword [ebp]
push ecx
push ebp
mov ecx, esi
call dword [0x66b6fc]
call esi
pop ecx
pop ecx
mov ecx, eax
mov dword [ebx + 0x78], ecx
test ecx, ecx
je 0x53efc7
mov eax, dword [esp + 0x14]
push eax
push dword [esp + 0x38]
push ecx
call fcn.0060b270
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov esi, dword [ebx + 0x74]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esi], eax
mov edx, eax
add esi, 4
cmp dword [esp + 0x24], eax
jne 0x53ed23
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x10
jmp 0x53ed90
push 2
pop eax
cmp ecx, eax
jb 0x53f38d
mov ebp, dword [esp + 0x14]
cmp byte [ecx + ebp - 2], dl
jne 0x53f38d
cmp byte [ecx + ebp - 1], dl
jne 0x53f38d
cmp edx, ecx
je 0x53f38d
add edx, dword [esp + 0x14]
xor ebp, ebp
cmp word [edx], bp
mov ebp, dword [esp + 0xbc]
je 0x53ed6d
xor ebx, ebx
add edx, eax
cmp word [edx], bx
jne 0x53ed62
mov ebx, dword [esp + 0x30]
sub edx, dword [esp + 0x14]
add edx, eax
mov eax, edx
shr eax, 1
mov dword [esi], eax
add esi, 4
sub dword [esp + 0x24], 1
push 2
pop eax
jne 0x53ed46
xor esi, esi
cmp edx, ecx
push 0x10
pop eax
cmove eax, esi
test eax, eax
jne 0x53f390
cmp byte [esp + 0x12], al
jne 0x53ee4b
sub dword [edi + 4], ecx
jmp 0x53ee49
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0053d59a
pop ecx
test eax, eax
jne 0x53f390
jmp 0x53ee4b
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
mov edx, esi
mov ecx, edi
call fcn.0053d59a
pop ecx
test eax, eax
jne 0x53f390
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov dword [esp + 0x34], eax
mov edx, ecx
mov dword [esp + 0x20], ecx
test esi, esi
je 0x53ee3e
mov bl, cl
mov ebp, ecx
mov dword [esp + 0x44], edx
test edx, edx
jne 0x53ee08
mov bl, byte [eax]
push 8
pop edx
dec edx
movzx eax, bl
mov cl, dl
shr eax, cl
mov ecx, dword [esp + 0x34]
and eax, 1
add ebp, eax
cmp dword [esp + 0x44], 0
lea eax, [ecx + 1]
cmovne eax, ecx
mov dword [esp + 0x34], eax
sub esi, 1
jne 0x53edfb
mov ebx, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0x44], ecx
jmp 0x53ee4b
sub eax, ecx
mov dword [edi + 4], eax
add dword [edi], ecx
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.0053d387
test eax, eax
je 0x53ead7
jmp 0x53f390
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x4c]
jne 0x53f38d
jmp 0x53ee90
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
je 0x53eea4
mov ecx, edi
call fcn.0053d51e
test eax, eax
jne 0x53f390
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.0053d387
test eax, eax
je 0x53ee77
jmp 0x53f390
mov esi, dword [ebp]
xor eax, eax
mov dword [esp + 0x48], eax
mov edi, eax
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
mov ecx, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
mov byte [esp + 0x11], al
mov eax, dword [ebx + 4]
movlpd qword [esp + 0x28], xmm0
mov byte [esp + 0x10], 0x80
lea eax, [eax*4 + 4]
push eax
push ebp
call dword [0x66b6fc]
call esi
mov dword [ebx + 0x6c], eax
pop ecx
pop ecx
test eax, eax
je 0x53efc7
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x53ef08
mov dword [ebx + 0x70], eax
jmp 0x53ef27
mov esi, dword [ebp]
mov ecx, esi
shl eax, 2
push eax
push ebp
call dword [0x66b6fc]
call esi
mov dword [ebx + 0x70], eax
pop ecx
pop ecx
test eax, eax
je 0x53efc7
mov eax, dword [ebx + 0x40]
mov esi, dword [ebp]
mov ecx, esi
lea eax, [eax*8 + 8]
push eax
push ebp
call dword [0x66b6fc]
call esi
mov dword [ebx + 0x44], eax
pop ecx
pop ecx
test eax, eax
je 0x53efc7
mov eax, dword [ebx + 0x40]
add eax, 7
shr eax, 3
test eax, eax
jne 0x53ef5d
xor edx, edx
mov dword [ebx + 0x48], edx
jmp 0x53ef77
mov esi, dword [ebp]
mov ecx, esi
push eax
push ebp
call dword [0x66b6fc]
call esi
mov dword [ebx + 0x48], eax
pop ecx
pop ecx
test eax, eax
je 0x53efc7
xor edx, edx
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x53ef8a
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], edx
jmp 0x53efd0
mov esi, dword [ebp]
add eax, 7
shr eax, 3
mov ecx, esi
push eax
push ebp
call dword [0x66b6fc]
call esi
mov dword [ebx + 0x4c], eax
pop ecx
pop ecx
test eax, eax
je 0x53efc7
mov eax, dword [esp + 0x18]
mov esi, dword [ebp]
mov ecx, esi
shl eax, 2
push eax
push ebp
call dword [0x66b6fc]
call esi
mov dword [ebx + 0x50], eax
pop ecx
pop ecx
test eax, eax
jne 0x53efce
push 2
jmp 0x53f38f
xor edx, edx
mov eax, dword [esp + 0x68]
test eax, eax
je 0x53f00a
dec eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
mov cl, byte [eax]
inc eax
mov byte [esp + 0x12], cl
mov dword [esp + 0x64], eax
test cl, cl
je 0x53eff6
mov dword [esp + 0x24], eax
jmp 0x53f00a
mov ecx, dword [esp + 0x50]
add ecx, 7
mov dword [esp + 0x34], eax
shr ecx, 3
add ecx, eax
mov dword [esp + 0x24], ecx
mov esi, edx
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp dword [esp + 0x1c], edi
jbe 0x53f131
mov al, byte [esp + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], esi
test al, al
jne 0x53f05f
mov eax, dword [ebx + 0x48]
lea ecx, [esi - 1]
mov bl, byte [esp + 0x13]
shr ecx, 3
mov byte [esp + 0x10], 0x80
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x4c]
mov bl, byte [esp + 0x11]
mov byte [ecx + eax], bl
xor eax, eax
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x13], al
mov byte [esp + 0x11], al
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov dword [eax + esi*8], ebp
mov dword [eax + esi*8 + 4], edx
mov eax, dword [ebx + 0x50]
mov dword [eax + esi*4], ecx
cmp dword [esp + 0x40], ecx
je 0x53f14b
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [esp + 0x40]
shr eax, 3
test byte [eax + ecx], dl
je 0x53f14b
cmp dword [esp + 0x44], 0
je 0x53f0d7
mov ecx, dword [esp + 0x48]
mov edx, 0x80
mov ebx, dword [esp + 0x44]
and ecx, 7
sar edx, cl
mov ecx, dword [esp + 0x48]
mov eax, ecx
shr eax, 3
test byte [eax + ebx], dl
mov ebx, dword [esp + 0x30]
jne 0x53f0d0
mov al, byte [esp + 0x13]
or al, byte [esp + 0x10]
mov byte [esp + 0x13], al
inc ecx
mov dword [esp + 0x48], ecx
jmp 0x53f0e3
mov al, byte [esp + 0x13]
or al, byte [esp + 0x10]
mov byte [esp + 0x13], al
cmp dword [esp + 0x14], 0
jne 0x53f1c7
mov eax, dword [ebx + 0x70]
or dword [eax + esi*4], 0xffffffff
mov edx, dword [esp + 0x18]
mov al, byte [esp + 0x10]
inc esi
shr al, 1
mov byte [esp + 0x10], al
cmp esi, dword [esp + 0x1c]
jb 0x53f026
mov eax, dword [ebx + 0x48]
mov ecx, dword [esp + 0x38]
mov bl, byte [esp + 0x13]
shr ecx, 3
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x4c]
mov bl, byte [esp + 0x11]
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x14], 0
mov eax, dword [ebx + 0x44]
mov dword [eax + esi*8], ebp
mov dword [eax + esi*8 + 4], edx
jne 0x53f38d
jmp 0x53f36c
cmp dword [esp + 0x14], 0
jne 0x53f1c7
cmp edi, dword [ebx + 4]
jae 0x53f38d
mov eax, dword [ebx + 0x6c]
mov dword [eax + edi*4], esi
xor eax, eax
inc eax
cmp dword [esp + 0x54], 0
mov dword [esp + 0x20], eax
je 0x53f188
lea edx, [esp + 0x20]
lea ecx, [esp + 0x54]
call fcn.0053d4c0
test eax, eax
jne 0x53f390
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x53f1c7
mov eax, dword [ebx + 0x20]
mov edx, dword [esp + 0x18]
movzx ecx, byte [eax + edi]
mov eax, dword [ebx + 0x1c]
add ecx, dword [eax + edi*4]
mov eax, dword [ebx + 0x24]
add ebp, dword [eax + ecx*8]
adc edx, dword [eax + ecx*8 + 4]
mov dword [esp + 0x18], edx
cmp edx, dword [eax + ecx*8 + 4]
jb 0x53f38d
ja 0x53f1c4
cmp ebp, dword [eax + ecx*8]
jb 0x53f38d
inc edi
jmp 0x53f152
cmp dword [esp + 0x40], 0
mov eax, dword [ebx + 0x70]
mov dword [eax + esi*4], edi
je 0x53f1f2
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [esp + 0x40]
shr eax, 3
test byte [eax + ecx], dl
jne 0x53f0f5
sub dword [esp + 0x14], 1
jne 0x53f2dc
mov eax, dword [ebx + 0x20]
movzx ecx, byte [eax + edi]
mov eax, dword [ebx + 0x1c]
add ecx, dword [eax + edi*4]
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + edi*4]
mov ebx, dword [ecx + eax*8]
sub ebp, dword [ecx + eax*8]
mov dword [esp + 0x78], ebx
mov ebx, dword [ecx + eax*8 + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
sbb eax, ebx
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x30]
cmp ecx, eax
jb 0x53f38d
ja 0x53f253
cmp edx, ebp
jb 0x53f38d
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x6c]
add ebp, edx
adc eax, ecx
mov dword [esp + 0x18], eax
cmp eax, ecx
jb 0x53f38d
ja 0x53f275
cmp ebp, edx
jb 0x53f38d
cmp dword [esp + 0x20], 1
jne 0x53f2a3
cmp dword [ebx + 0xc], 0
je 0x53f2a3
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [ebx + 0xc]
shr eax, 3
test byte [eax + ecx], dl
je 0x53f2a3
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x53f2c4
cmp byte [esp + 0x12], 0
jne 0x53f2b7
mov eax, dword [esp + 0x34]
test eax, eax
je 0x53f2d6
test byte [eax], 0x80
je 0x53f2d6
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
add edx, 4
mov dword [esp + 0x24], edx
mov ecx, dword [ebx + 0x50]
mov dword [ecx + esi*4], eax
mov al, byte [esp + 0x11]
or al, byte [esp + 0x10]
mov byte [esp + 0x11], al
inc edi
jmp 0x53f0f5
lea edx, [esp + 0x28]
lea ecx, [esp + 0x5c]
call fcn.0053d387
test eax, eax
jne 0x53f390
add ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
adc edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x2c]
jb 0x53f38d
ja 0x53f313
cmp ebp, dword [esp + 0x28]
jb 0x53f38d
cmp byte [esp + 0x12], 0
jne 0x53f32f
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x53f0f9
test byte [ecx], 0x80
je 0x53f0f9
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x50]
add dword [esp + 0x24], 4
mov eax, dword [eax]
mov dword [ecx + esi*4], eax
mov al, byte [esp + 0x10]
or byte [esp + 0x11], al
jmp 0x53f0fd
cmp dword [esp + 0x54], 0
je 0x53f38d
lea edx, [esp + 0x20]
lea ecx, [esp + 0x54]
call fcn.0053d4c0
test eax, eax
jne 0x53f390
cmp dword [esp + 0x20], eax
jne 0x53f38d
inc edi
mov eax, dword [ebx + 0x6c]
mov dword [eax + edi*4], esi
cmp edi, dword [ebx + 4]
jb 0x53f34d
cmp dword [esp + 0x54], 0
je 0x53ea8e
cmp dword [esp + 0x58], 0
je 0x53ea8e
push 0x10
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret