Function at 0x537e94
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.00536931
test eax, eax
jne 0x53893a
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp edx, 2
jne 0x537f34
cmp ecx, eax
jne 0x537f34
jmp 0x537f07
mov eax, dword [esp + 0x28]
mov ecx, edi
or eax, dword [esp + 0x2c]
je 0x537f1b
call fcn.00536ac8
test eax, eax
jne 0x53893a
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00536931
test eax, eax
je 0x537eee
jmp 0x53893a
lea edx, [esp + 0x38]
call fcn.00536931
test eax, eax
jne 0x53893a
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
cmp edx, 3
jne 0x537fc7
cmp ecx, eax
jne 0x537fc7
lea ecx, [esp + 0x7c]
call fcn.0053677f
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.00537c32
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.005367a2
test esi, esi
je 0x537fac
mov eax, esi
jmp 0x53893a
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.00536931
test eax, eax
jne 0x53893a
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0xbc]
cmp edx, 4
jne 0x538032
xor eax, eax
cmp ecx, eax
jne 0x538032
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.00537b1f
add esp, 0x18
test eax, eax
jne 0x53893a
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.00536931
test eax, eax
jne 0x53893a
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, edx
or eax, ecx
jne 0x53803f
xor eax, eax
jmp 0x53893a
cmp edx, 5
jne 0x538937
xor eax, eax
cmp ecx, eax
jne 0x538937
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.00536a6a
test eax, eax
jne 0x53893a
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x40], eax
jmp 0x5383f5
mov esi, dword [esp + 0x38]
mov eax, esi
or eax, dword [esp + 0x3c]
je 0x53840d
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00536931
test eax, eax
jne 0x53893a
mov eax, dword [edi + 4]
xor edx, edx
cmp dword [esp + 0x2c], edx
ja 0x538937
mov ecx, dword [esp + 0x28]
jb 0x5380c1
cmp ecx, eax
ja 0x538937
cmp dword [esp + 0x3c], edx
ja 0x5383ee
cmp esi, 0x100
jae 0x5383ee
sub esi, 0xe
je 0x538372
sub esi, 1
je 0x538354
push 2
pop edx
sub esi, edx
je 0x5381c7
sub esi, 1
je 0x5381c2
sub esi, edx
je 0x53819c
sub esi, 1
jne 0x5383ee
lea esi, [ebx + 0x54]
mov edx, ebp
mov ecx, esi
call fcn.00536748
mov edx, dword [esp + 0x1c]
mov ecx, edi
push ebp
push esi
call fcn.00536bb8
pop ecx
pop ecx
test eax, eax
jne 0x53893a
mov eax, dword [edi + 4]
test eax, eax
je 0x538937
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 0x53818b
lea edx, [esp + 0x48]
call fcn.00536a6a
test eax, eax
jne 0x53893a
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x48]
cmp ecx, dword [eax]
jae 0x538937
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.00536c7e
pop ecx
jmp 0x538364
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.00537d5f
add esp, 0x10
jmp 0x538365
lea ecx, [ebx + 0x64]
jmp 0x53819f
test eax, eax
je 0x538937
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 0x5381f0
lea eax, [ecx - 1]
jmp 0x538228
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.00536a6a
test eax, eax
jne 0x53893a
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx]
jae 0x538937
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 0x538937
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp]
mov ecx, esi
lea eax, [eax*4 + 4]
push eax
push ebp
call dword [0x6636e0]
call esi
mov dword [ebx + 0x74], eax
pop ecx
pop ecx
test eax, eax
je 0x538571
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x53826d
xor eax, eax
mov ebx, eax
mov dword [esp + 0x30], ebx
jmp 0x5382a1
mov esi, dword [ebp]
push ecx
push ebp
mov ecx, esi
call dword [0x6636e0]
call esi
pop ecx
pop ecx
mov ecx, eax
mov dword [ebx + 0x78], ecx
test ecx, ecx
je 0x538571
mov eax, dword [esp + 0x14]
push eax
push dword [esp + 0x38]
push ecx
call fcn.00604820
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 0x5382cd
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x10
jmp 0x53833a
push 2
pop eax
cmp ecx, eax
jb 0x538937
mov ebp, dword [esp + 0x14]
cmp byte [ecx + ebp - 2], dl
jne 0x538937
cmp byte [ecx + ebp - 1], dl
jne 0x538937
cmp edx, ecx
je 0x538937
add edx, dword [esp + 0x14]
xor ebp, ebp
cmp word [edx], bp
mov ebp, dword [esp + 0xbc]
je 0x538317
xor ebx, ebx
add edx, eax
cmp word [edx], bx
jne 0x53830c
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 0x5382f0
xor esi, esi
cmp edx, ecx
push 0x10
pop eax
cmove eax, esi
test eax, eax
jne 0x53893a
cmp byte [esp + 0x12], al
jne 0x5383f5
sub dword [edi + 4], ecx
jmp 0x5383f3
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.00536b44
pop ecx
test eax, eax
jne 0x53893a
jmp 0x5383f5
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
mov edx, esi
mov ecx, edi
call fcn.00536b44
pop ecx
test eax, eax
jne 0x53893a
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 0x5383e8
mov bl, cl
mov ebp, ecx
mov dword [esp + 0x44], edx
test edx, edx
jne 0x5383b2
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 0x5383a5
mov ebx, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0x44], ecx
jmp 0x5383f5
sub eax, ecx
mov dword [edi + 4], eax
add dword [edi], ecx
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.00536931
test eax, eax
je 0x538081
jmp 0x53893a
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x4c]
jne 0x538937
jmp 0x53843a
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
je 0x53844e
mov ecx, edi
call fcn.00536ac8
test eax, eax
jne 0x53893a
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00536931
test eax, eax
je 0x538421
jmp 0x53893a
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 [0x6636e0]
call esi
mov dword [ebx + 0x6c], eax
pop ecx
pop ecx
test eax, eax
je 0x538571
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x5384b2
mov dword [ebx + 0x70], eax
jmp 0x5384d1
mov esi, dword [ebp]
mov ecx, esi
shl eax, 2
push eax
push ebp
call dword [0x6636e0]
call esi
mov dword [ebx + 0x70], eax
pop ecx
pop ecx
test eax, eax
je 0x538571
mov eax, dword [ebx + 0x40]
mov esi, dword [ebp]
mov ecx, esi
lea eax, [eax*8 + 8]
push eax
push ebp
call dword [0x6636e0]
call esi
mov dword [ebx + 0x44], eax
pop ecx
pop ecx
test eax, eax
je 0x538571
mov eax, dword [ebx + 0x40]
add eax, 7
shr eax, 3
test eax, eax
jne 0x538507
xor edx, edx
mov dword [ebx + 0x48], edx
jmp 0x538521
mov esi, dword [ebp]
mov ecx, esi
push eax
push ebp
call dword [0x6636e0]
call esi
mov dword [ebx + 0x48], eax
pop ecx
pop ecx
test eax, eax
je 0x538571
xor edx, edx
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x538534
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], edx
jmp 0x53857a
mov esi, dword [ebp]
add eax, 7
shr eax, 3
mov ecx, esi
push eax
push ebp
call dword [0x6636e0]
call esi
mov dword [ebx + 0x4c], eax
pop ecx
pop ecx
test eax, eax
je 0x538571
mov eax, dword [esp + 0x18]
mov esi, dword [ebp]
mov ecx, esi
shl eax, 2
push eax
push ebp
call dword [0x6636e0]
call esi
mov dword [ebx + 0x50], eax
pop ecx
pop ecx
test eax, eax
jne 0x538578
push 2
jmp 0x538939
xor edx, edx
mov eax, dword [esp + 0x68]
test eax, eax
je 0x5385b4
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 0x5385a0
mov dword [esp + 0x24], eax
jmp 0x5385b4
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 0x5386db
mov al, byte [esp + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], esi
test al, al
jne 0x538609
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 0x5386f5
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 0x5386f5
cmp dword [esp + 0x44], 0
je 0x538681
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 0x53867a
mov al, byte [esp + 0x13]
or al, byte [esp + 0x10]
mov byte [esp + 0x13], al
inc ecx
mov dword [esp + 0x48], ecx
jmp 0x53868d
mov al, byte [esp + 0x13]
or al, byte [esp + 0x10]
mov byte [esp + 0x13], al
cmp dword [esp + 0x14], 0
jne 0x538771
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 0x5385d0
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 0x538937
jmp 0x538916
cmp dword [esp + 0x14], 0
jne 0x538771
cmp edi, dword [ebx + 4]
jae 0x538937
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 0x538732
lea edx, [esp + 0x20]
lea ecx, [esp + 0x54]
call fcn.00536a6a
test eax, eax
jne 0x53893a
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x538771
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 0x538937
ja 0x53876e
cmp ebp, dword [eax + ecx*8]
jb 0x538937
inc edi
jmp 0x5386fc
cmp dword [esp + 0x40], 0
mov eax, dword [ebx + 0x70]
mov dword [eax + esi*4], edi
je 0x53879c
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 0x53869f
sub dword [esp + 0x14], 1
jne 0x538886
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 0x538937
ja 0x5387fd
cmp edx, ebp
jb 0x538937
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 0x538937
ja 0x53881f
cmp ebp, edx
jb 0x538937
cmp dword [esp + 0x20], 1
jne 0x53884d
cmp dword [ebx + 0xc], 0
je 0x53884d
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 0x53884d
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x53886e
cmp byte [esp + 0x12], 0
jne 0x538861
mov eax, dword [esp + 0x34]
test eax, eax
je 0x538880
test byte [eax], 0x80
je 0x538880
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 0x53869f
lea edx, [esp + 0x28]
lea ecx, [esp + 0x5c]
call fcn.00536931
test eax, eax
jne 0x53893a
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 0x538937
ja 0x5388bd
cmp ebp, dword [esp + 0x28]
jb 0x538937
cmp byte [esp + 0x12], 0
jne 0x5388d9
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x5386a3
test byte [ecx], 0x80
je 0x5386a3
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 0x5386a7
cmp dword [esp + 0x54], 0
je 0x538937
lea edx, [esp + 0x20]
lea ecx, [esp + 0x54]
call fcn.00536a6a
test eax, eax
jne 0x53893a
cmp dword [esp + 0x20], eax
jne 0x538937
inc edi
mov eax, dword [ebx + 0x6c]
mov dword [eax + edi*4], esi
cmp edi, dword [ebx + 4]
jb 0x5388f7
cmp dword [esp + 0x54], 0
je 0x538038
cmp dword [esp + 0x58], 0
je 0x538038
push 0x10
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret