Function at 0x537da5
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.00536842
test eax, eax
jne 0x53884b
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp edx, 2
jne 0x537e45
cmp ecx, eax
jne 0x537e45
jmp 0x537e18
mov eax, dword [esp + 0x28]
mov ecx, edi
or eax, dword [esp + 0x2c]
je 0x537e2c
call fcn.005369d9
test eax, eax
jne 0x53884b
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00536842
test eax, eax
je 0x537dff
jmp 0x53884b
lea edx, [esp + 0x38]
call fcn.00536842
test eax, eax
jne 0x53884b
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
cmp edx, 3
jne 0x537ed8
cmp ecx, eax
jne 0x537ed8
lea ecx, [esp + 0x7c]
call fcn.00536690
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.00537b43
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.005366b3
test esi, esi
je 0x537ebd
mov eax, esi
jmp 0x53884b
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.00536842
test eax, eax
jne 0x53884b
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0xbc]
cmp edx, 4
jne 0x537f43
xor eax, eax
cmp ecx, eax
jne 0x537f43
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.00537a30
add esp, 0x18
test eax, eax
jne 0x53884b
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.00536842
test eax, eax
jne 0x53884b
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, edx
or eax, ecx
jne 0x537f50
xor eax, eax
jmp 0x53884b
cmp edx, 5
jne 0x538848
xor eax, eax
cmp ecx, eax
jne 0x538848
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.0053697b
test eax, eax
jne 0x53884b
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x40], eax
jmp 0x538306
mov esi, dword [esp + 0x38]
mov eax, esi
or eax, dword [esp + 0x3c]
je 0x53831e
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00536842
test eax, eax
jne 0x53884b
mov eax, dword [edi + 4]
xor edx, edx
cmp dword [esp + 0x2c], edx
ja 0x538848
mov ecx, dword [esp + 0x28]
jb 0x537fd2
cmp ecx, eax
ja 0x538848
cmp dword [esp + 0x3c], edx
ja 0x5382ff
cmp esi, 0x100
jae 0x5382ff
sub esi, 0xe
je 0x538283
sub esi, 1
je 0x538265
push 2
pop edx
sub esi, edx
je 0x5380d8
sub esi, 1
je 0x5380d3
sub esi, edx
je 0x5380ad
sub esi, 1
jne 0x5382ff
lea esi, [ebx + 0x54]
mov edx, ebp
mov ecx, esi
call fcn.00536659
mov edx, dword [esp + 0x1c]
mov ecx, edi
push ebp
push esi
call fcn.00536ac9
pop ecx
pop ecx
test eax, eax
jne 0x53884b
mov eax, dword [edi + 4]
test eax, eax
je 0x538848
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 0x53809c
lea edx, [esp + 0x48]
call fcn.0053697b
test eax, eax
jne 0x53884b
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x48]
cmp ecx, dword [eax]
jae 0x538848
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.00536b8f
pop ecx
jmp 0x538275
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.00537c70
add esp, 0x10
jmp 0x538276
lea ecx, [ebx + 0x64]
jmp 0x5380b0
test eax, eax
je 0x538848
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 0x538101
lea eax, [ecx - 1]
jmp 0x538139
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.0053697b
test eax, eax
jne 0x53884b
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx]
jae 0x538848
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 0x538848
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 0x538482
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x53817e
xor eax, eax
mov ebx, eax
mov dword [esp + 0x30], ebx
jmp 0x5381b2
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 0x538482
mov eax, dword [esp + 0x14]
push eax
push dword [esp + 0x38]
push ecx
call fcn.00604770
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 0x5381de
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x10
jmp 0x53824b
push 2
pop eax
cmp ecx, eax
jb 0x538848
mov ebp, dword [esp + 0x14]
cmp byte [ecx + ebp - 2], dl
jne 0x538848
cmp byte [ecx + ebp - 1], dl
jne 0x538848
cmp edx, ecx
je 0x538848
add edx, dword [esp + 0x14]
xor ebp, ebp
cmp word [edx], bp
mov ebp, dword [esp + 0xbc]
je 0x538228
xor ebx, ebx
add edx, eax
cmp word [edx], bx
jne 0x53821d
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 0x538201
xor esi, esi
cmp edx, ecx
push 0x10
pop eax
cmove eax, esi
test eax, eax
jne 0x53884b
cmp byte [esp + 0x12], al
jne 0x538306
sub dword [edi + 4], ecx
jmp 0x538304
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.00536a55
pop ecx
test eax, eax
jne 0x53884b
jmp 0x538306
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
mov edx, esi
mov ecx, edi
call fcn.00536a55
pop ecx
test eax, eax
jne 0x53884b
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 0x5382f9
mov bl, cl
mov ebp, ecx
mov dword [esp + 0x44], edx
test edx, edx
jne 0x5382c3
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 0x5382b6
mov ebx, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0x44], ecx
jmp 0x538306
sub eax, ecx
mov dword [edi + 4], eax
add dword [edi], ecx
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.00536842
test eax, eax
je 0x537f92
jmp 0x53884b
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x4c]
jne 0x538848
jmp 0x53834b
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
je 0x53835f
mov ecx, edi
call fcn.005369d9
test eax, eax
jne 0x53884b
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00536842
test eax, eax
je 0x538332
jmp 0x53884b
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 0x538482
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x5383c3
mov dword [ebx + 0x70], eax
jmp 0x5383e2
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 0x538482
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 0x538482
mov eax, dword [ebx + 0x40]
add eax, 7
shr eax, 3
test eax, eax
jne 0x538418
xor edx, edx
mov dword [ebx + 0x48], edx
jmp 0x538432
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 0x538482
xor edx, edx
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x538445
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], edx
jmp 0x53848b
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 0x538482
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 0x538489
push 2
jmp 0x53884a
xor edx, edx
mov eax, dword [esp + 0x68]
test eax, eax
je 0x5384c5
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 0x5384b1
mov dword [esp + 0x24], eax
jmp 0x5384c5
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 0x5385ec
mov al, byte [esp + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], esi
test al, al
jne 0x53851a
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 0x538606
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 0x538606
cmp dword [esp + 0x44], 0
je 0x538592
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 0x53858b
mov al, byte [esp + 0x13]
or al, byte [esp + 0x10]
mov byte [esp + 0x13], al
inc ecx
mov dword [esp + 0x48], ecx
jmp 0x53859e
mov al, byte [esp + 0x13]
or al, byte [esp + 0x10]
mov byte [esp + 0x13], al
cmp dword [esp + 0x14], 0
jne 0x538682
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 0x5384e1
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 0x538848
jmp 0x538827
cmp dword [esp + 0x14], 0
jne 0x538682
cmp edi, dword [ebx + 4]
jae 0x538848
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 0x538643
lea edx, [esp + 0x20]
lea ecx, [esp + 0x54]
call fcn.0053697b
test eax, eax
jne 0x53884b
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x538682
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 0x538848
ja 0x53867f
cmp ebp, dword [eax + ecx*8]
jb 0x538848
inc edi
jmp 0x53860d
cmp dword [esp + 0x40], 0
mov eax, dword [ebx + 0x70]
mov dword [eax + esi*4], edi
je 0x5386ad
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 0x5385b0
sub dword [esp + 0x14], 1
jne 0x538797
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 0x538848
ja 0x53870e
cmp edx, ebp
jb 0x538848
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 0x538848
ja 0x538730
cmp ebp, edx
jb 0x538848
cmp dword [esp + 0x20], 1
jne 0x53875e
cmp dword [ebx + 0xc], 0
je 0x53875e
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 0x53875e
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x53877f
cmp byte [esp + 0x12], 0
jne 0x538772
mov eax, dword [esp + 0x34]
test eax, eax
je 0x538791
test byte [eax], 0x80
je 0x538791
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 0x5385b0
lea edx, [esp + 0x28]
lea ecx, [esp + 0x5c]
call fcn.00536842
test eax, eax
jne 0x53884b
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 0x538848
ja 0x5387ce
cmp ebp, dword [esp + 0x28]
jb 0x538848
cmp byte [esp + 0x12], 0
jne 0x5387ea
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x5385b4
test byte [ecx], 0x80
je 0x5385b4
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 0x5385b8
cmp dword [esp + 0x54], 0
je 0x538848
lea edx, [esp + 0x20]
lea ecx, [esp + 0x54]
call fcn.0053697b
test eax, eax
jne 0x53884b
cmp dword [esp + 0x20], eax
jne 0x538848
inc edi
mov eax, dword [ebx + 0x6c]
mov dword [eax + edi*4], esi
cmp edi, dword [ebx + 4]
jb 0x538808
cmp dword [esp + 0x54], 0
je 0x537f49
cmp dword [esp + 0x58], 0
je 0x537f49
push 0x10
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret