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

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x110]
xor cl, cl
xor ch, ch
mov byte [esp + 0x12], cl
push ebp
mov ebp, dword [esp + 0x11c]
xor eax, eax
mov byte [esp + 0xb], ch
xor edx, edx
mov byte [esp + 0x17], cl
mov byte [esp + 0xa], ch
mov ecx, dword [esp + 0x124]
mov dword [esp + 0xf8], eax
push esi
push edi
lea eax, [ecx + ebp]
mov dword [esp + 0x40], 0
mov esi, eax
mov dword [esp + 0x110], eax
xor edi, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x114], edi
mov edi, dword [esp + 0x128]
mov dword [esp + 0x104], 0
lea eax, [esi - 1]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], eax
test ebx, ebx
jne 0x530c69
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x530c69
test ebp, ebp
jne 0x530c69
cmp edi, 0xfffffc19
jne 0x530c69
cmp ecx, edi
jne 0x530c69
push edx
push edx
push edx
push edx
push edx
push edx
push edx
call fcn.00523400
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0x130]
test edx, 0xe20f5a6f
je 0x530c88
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x108
ret
test ebx, ebx
je 0x531add
test ebp, ebp
je 0x531add
mov ebp, dword [esp + 0x134]
mov eax, dword [esp + 0x138]
test ebp, ebp
jne 0x530cb2
test eax, eax
jg 0x531add
test eax, eax
jns 0x530cc6
pop edi
pop esi
pop ebp
mov eax, 0xfffffff1
pop ebx
add esp, 0x108
ret
test edi, edi
jns 0x530cda
pop edi
pop esi
pop ebp
mov eax, 0xffffffe0
pop ebx
add esp, 0x108
ret
test ecx, ecx
js 0x531acd
cmp ecx, edi
jg 0x531acd
mov ecx, dword [ebx]
cmp ecx, 0x50435245
je 0x530d12
pop edi
pop esi
cmp ecx, 0x45524350
mov eax, 0xfffffffc
mov edx, 0xffffffe3
pop ebp
cmove eax, edx
pop ebx
add esp, 0x108
ret
test byte [ebx + 0xc], 1
jne 0x530d28
pop edi
pop esi
pop ebp
mov eax, 0xffffffe4
pop ebx
add esp, 0x108
ret
mov ecx, dword [ebx + 8]
mov eax, 0
and ecx, 0x800
mov dword [esp + 0x38], ecx
setne al
mov dword [esp + 0x24], eax
mov dword [esp + 0x90], eax
test edx, 0x8000000
je 0x530d57
mov eax, 2
jmp 0x530d5f
mov eax, edx
shr eax, 0xf
and eax, 1
mov dword [esp + 0xcc], eax
test ecx, ecx
je 0x530df4
test edx, 0x2000
jne 0x530df4
lea eax, [esp + 0x28]
push eax
push edi
push dword [esp + 0x12c]
call fcn.005374a0
add esp, 0xc
test eax, eax
je 0x530dcb
cmp dword [esp + 0x138], 2
jl 0x530da3
mov ecx, dword [esp + 0x28]
mov dword [ebp], ecx
mov dword [ebp + 4], eax
cmp eax, 5
jg 0x530dbb
cmp dword [esp + 0xcc], 1
mov eax, 0xffffffe7
jg 0x531ae2
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x12c]
test eax, eax
jle 0x530df4
cmp eax, edi
jge 0x530df4
mov eax, esi
mov al, byte [eax]
and al, 0xc0
cmp al, 0x80
jne 0x530df4
pop edi
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0x108
ret
movzx eax, word [ebx + 0x22]
mov ecx, 0x989680
movzx ebp, word [ebx + 0x24]
add eax, ebx
mov dword [esp + 0x74], eax
mov edx, ecx
movzx eax, word [ebx + 0x26]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x120]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x2c], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0xec], 0
test eax, eax
je 0x530e98
mov ebx, dword [eax]
test bl, 1
je 0x530e57
mov edi, dword [eax + 4]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x128]
test bl, 2
je 0x530e63
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
test bl, 0x10
je 0x530e6f
mov edx, dword [eax + 0x14]
mov dword [esp + 0x4c], edx
test bl, 4
je 0x530e85
mov eax, dword [eax + 0xc]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x120]
test bl, 8
mov ebx, dword [esp + 0x11c]
je 0x530e98
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
mov ebx, dword [ebx + 0xc]
test ebx, 0x2000
je 0x530eb6
mov eax, dword [esp + 0x11c]
mov eax, dword [eax + 0x10]
cmp eax, ecx
cmovb ecx, eax
mov dword [esp + 0x48], ecx
test ebx, 0x4000
je 0x530ed1
mov eax, dword [esp + 0x11c]
mov eax, dword [eax + 0x14]
cmp eax, edx
cmovb edx, eax
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x18]
mov ecx, 0x5f6760
test eax, eax
mov dword [esp + 0x70], 0
mov dword [esp + 0xa8], 0
cmovne ecx, eax
mov dword [esp + 0xf4], 0
mov eax, dword [esp + 0x11c]
mov dword [esp + 0xf0], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 8]
mov eax, edx
or eax, dword [esp + 0x130]
shr eax, 4
and eax, 1
mov dword [esp + 0x10c], eax
mov eax, ebx
shr eax, 8
and eax, 1
mov ebx, dword [esp + 0x11c]
mov dword [esp + 0xfc], eax
mov eax, edx
shr eax, 0x12
and eax, 1
mov dword [esp + 0x108], eax
movzx eax, word [ebx + 0x26]
imul ebp, eax
movzx eax, word [ebx + 0x22]
add ebp, eax
mov eax, dword [esp + 0x12c]
mov dword [esp + 0xd8], eax
add ebp, ebx
mov eax, edx
mov dword [esp + 0xb4], ebp
shr eax, 5
and eax, 1
mov ebp, dword [esp + 0x130]
mov dword [esp + 0x9c], eax
mov eax, edx
shr eax, 0x1d
and eax, 1
mov ebx, dword [esp + 0x124]
mov dword [esp + 0x98], eax
mov eax, edx
shr eax, 0x19
and eax, 1
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x94], eax
add ebx, edi
mov eax, ebp
mov dword [esp + 0xbc], ebx
shr eax, 7
mov edi, ebx
and eax, 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x88], eax
mov eax, ebp
shr eax, 8
and eax, 1
mov dword [esp + 0x8c], eax
mov eax, ebp
shr eax, 0xa
and eax, 1
mov dword [esp + 0xa0], eax
mov eax, ebp
shr eax, 0x1c
and eax, 1
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x11c]
mov eax, dword [eax + 0xc]
shr eax, 0xc
and eax, 1
mov dword [esp + 0xb0], eax
lea eax, [ecx + 0x100]
mov dword [esp + 0x80], eax
lea eax, [ecx + 0x340]
mov dword [esp + 0x84], eax
mov eax, ebp
and eax, 0x1800000
je 0x531072
cmp eax, 0x800000
je 0x531065
cmp eax, 0x1000000
je 0x53108b
pop edi
pop esi
pop ebp
mov eax, 0xffffffe9
pop ebx
add esp, 0x108
ret
mov dword [esp + 0xac], 1
jmp 0x531096
test edx, 0x1800000
je 0x53108b
mov eax, edx
shr eax, 0x17
and eax, 1
mov dword [esp + 0xac], eax
jmp 0x531096
mov dword [esp + 0xac], 0
test ebp, 0x700000
mov eax, ebp
cmove eax, edx
and eax, 0x700000
cmp eax, 0x300000
ja 0x531119
je 0x5310ff
test eax, eax
je 0x5310e5
cmp eax, 0x100000
je 0x5310cb
cmp eax, 0x200000
jne 0x531055
mov dword [esp + 0x5c], 0
jmp 0x5310eb
mov ecx, 0xd
xor eax, eax
mov ebp, 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebp
mov byte [esp + 0x78], cl
jmp 0x53113f
xor eax, eax
mov dword [esp + 0x5c], eax
mov ecx, 0xa
mov ebp, 1
mov dword [esp + 0x60], ebp
mov byte [esp + 0x78], cl
jmp 0x53113f
mov ebp, 2
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], ebp
mov word [esp + 0x78], 0xa0d
jmp 0x53113f
cmp eax, 0x400000
je 0x531132
cmp eax, 0x500000
jne 0x531055
mov eax, 2
jmp 0x531137
mov eax, 1
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x5c], eax
cmp dword [esp + 0xcc], 0
je 0x531169
mov eax, dword [esp + 0x11c]
test dword [eax + 0xc], 0x200
je 0x531169
pop edi
pop esi
pop ebp
mov eax, 0xfffffff3
pop ebx
add esp, 0x108
ret
mov eax, 0x55555556
imul dword [esp + 0x138]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
mov dword [esp + 0x14], eax
lea ecx, [eax + eax]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x11c]
movzx eax, word [eax + 0x20]
test ax, ax
je 0x531211
mov edi, dword [esp + 0x11c]
mov eax, 0x55555556
imul dword [esp + 0x14]
movzx ecx, word [edi + 0x20]
mov edi, dword [esp + 0x20]
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x531211
inc ecx
lea eax, [ecx + ecx*2]
mov dword [esp + 0x14], eax
shl eax, 2
push eax
call dword [0x647398]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], eax
test eax, eax
jne 0x5311fc
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x108
ret
mov ebx, dword [esp + 0xbc]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x40], 1
jmp 0x531220
mov eax, dword [esp + 0x134]
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov dword [esp + 0xd4], 0
lea ecx, [eax + eax]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x58], eax
test edx, edx
je 0x5312e3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x11c]
lea ecx, [edx + ecx*4]
movzx eax, word [eax + 0x1e]
mov edi, ecx
shl eax, 2
sub edi, eax
lea eax, [edx + 8]
cmp edi, eax
cmovb edi, eax
sub ecx, 4
mov eax, edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x20]
cmp ecx, eax
jb 0x5312ac
nop word [eax + eax]
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, eax
jae 0x531290
mov ebx, dword [esp + 0xbc]
mov ebp, dword [esp + 0x60]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x138]
test eax, eax
jle 0x5312cc
mov dword [edx], 0xffffffff
mov ebx, dword [esp + 0xbc]
mov ebp, dword [esp + 0x60]
mov edx, dword [esp + 0x50]
cmp eax, 1
jle 0x5312e3
mov dword [edx + 4], 0xffffffff
mov ebx, dword [esp + 0xbc]
mov ebp, dword [esp + 0x60]
cmp dword [esp + 0x10c], 0
mov edx, dword [esp + 0x11c]
jne 0x531349
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x531327
mov ch, byte [edx + 0x18]
mov dword [esp + 0x30], 1
mov cl, ch
mov byte [esp + 0x13], ch
mov byte [esp + 0x1e], cl
test al, 0x20
je 0x531349
mov eax, dword [esp + 0x80]
movzx ecx, ch
mov ch, byte [ecx + eax]
mov byte [esp + 0x13], ch
jmp 0x531349
cmp dword [esp + 0xfc], 0
jne 0x531349
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x531349
test byte [eax + 4], 1
je 0x531349
add eax, 8
mov dword [esp + 0x100], eax
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x531380
mov ch, byte [edx + 0x1a]
mov dword [esp + 0x104], 1
mov cl, ch
mov byte [esp + 0x12], ch
mov byte [esp + 0x1f], cl
test al, al
jns 0x531380
mov eax, dword [esp + 0x80]
movzx ecx, ch
mov ch, byte [ecx + eax]
mov byte [esp + 0x12], ch
nop dword [eax]
cmp dword [esp + 0x108], 0
mov ecx, edi
mov dword [esp + 0x14], ecx
je 0x53148b
cmp dword [esp + 0x38], 0
mov edi, esi
je 0x531428
cmp esi, ebx
jae 0x53148b
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
test ecx, ecx
je 0x5313ea
cmp edi, ebx
jae 0x531410
push dword [esp + 0x24]
lea eax, [esp + 0x64]
push eax
push ebx
push ecx
push edi
call fcn.00537150
mov ebp, dword [esp + 0x74]
add esp, 0x14
test eax, eax
jne 0x531484
mov ebx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
jmp 0x531410
mov eax, ebx
sub eax, ebp
cmp edi, eax
ja 0x531410
mov al, byte [edi]
cmp al, byte [esp + 0x78]
jne 0x531410
cmp ebp, 1
je 0x531484
mov al, byte [edi + 1]
cmp al, byte [esp + 0x79]
je 0x531484
inc edi
cmp edi, edx
jae 0x531422
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x531422
inc edi
cmp edi, edx
jb 0x531415
cmp edi, ebx
jb 0x5313b1
jmp 0x531484
cmp esi, ebx
jae 0x53148b
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x531461
cmp edi, ebx
jae 0x53147f
push dword [esp + 0x24]
lea eax, [esp + 0x64]
push eax
push ebx
push ecx
push edi
call fcn.00537150
mov ebp, dword [esp + 0x74]
add esp, 0x14
test eax, eax
jne 0x531484
mov ebx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x5c]
jmp 0x53147f
mov eax, ebx
sub eax, ebp
cmp edi, eax
ja 0x53147f
mov al, byte [edi]
cmp al, byte [esp + 0x78]
jne 0x53147f
cmp ebp, 1
je 0x531484
mov al, byte [edi + 1]
cmp al, byte [esp + 0x79]
je 0x531484
inc edi
cmp edi, ebx
jb 0x531430
mov edx, dword [esp + 0x11c]
mov eax, dword [edx + 8]
or eax, dword [esp + 0x130]
test eax, 0x4000000
jne 0x531652
cmp dword [esp + 0x30], 0
je 0x5314f6
mov cl, byte [esp + 0x1e]
mov dl, byte [esp + 0x13]
cmp cl, dl
je 0x5314dc
cmp esi, edi
jae 0x531652
nop dword [eax + eax]
mov al, byte [esi]
cmp al, cl
je 0x531652
cmp al, dl
je 0x531652
inc esi
cmp esi, edi
jb 0x5314c0
jmp 0x531652
cmp esi, edi
jae 0x531652
cmp byte [esi], cl
je 0x531652
inc esi
cmp esi, edi
jb 0x5314e4
jmp 0x531652
cmp dword [esp + 0xfc], 0
je 0x531627
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0xb8]
add eax, ecx
cmp esi, eax
jbe 0x531652
cmp dword [esp + 0x38], 0
je 0x5315a6
cmp esi, edi
jae 0x531607
nop
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x531565
cmp esi, ecx
jbe 0x53158e
push dword [esp + 0x24]
lea edx, [esp + 0x64]
push edx
push ecx
push eax
push esi
call fcn.005372a0
add esp, 0x14
test eax, eax
jne 0x531607
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0xb8]
jmp 0x53158e
lea eax, [ecx + ebp]
cmp esi, eax
jb 0x53158e
mov edx, esi
sub edx, ebp
mov al, byte [edx]
cmp al, byte [esp + 0x78]
jne 0x53158e
cmp ebp, 1
je 0x531607
mov al, byte [edx + 1]
cmp al, byte [esp + 0x79]
je 0x531607
inc esi
cmp esi, edi
jae 0x531607
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x531530
inc esi
cmp esi, edi
jb 0x531597
jmp 0x531607
cmp esi, edi
jae 0x531607
mov eax, dword [esp + 0x5c]
nop
test eax, eax
je 0x5315dd
cmp esi, ecx
jbe 0x531602
push dword [esp + 0x24]
lea edx, [esp + 0x64]
push edx
push ecx
push eax
push esi
call fcn.005372a0
add esp, 0x14
test eax, eax
jne 0x531607
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0xb8]
jmp 0x5315fe
lea eax, [ecx + ebp]
cmp esi, eax
jb 0x5315fe
mov edx, esi
sub edx, ebp
mov al, byte [edx]
cmp al, byte [esp + 0x78]
jne 0x5315fe
cmp ebp, 1
je 0x531607
mov al, byte [edx + 1]
cmp al, byte [esp + 0x79]
je 0x531607
mov eax, dword [esp + 0x5c]
inc esi
cmp esi, edi
jb 0x5315b0
cmp byte [esi - 1], 0xd
jne 0x531652
mov eax, dword [esp + 0x5c]
cmp eax, 1
je 0x53161b
cmp eax, 2
jne 0x531652
cmp esi, edi
jae 0x531652
cmp byte [esi], 0xa
jne 0x531652
inc esi
jmp 0x531652
mov ebx, dword [esp + 0x100]
test ebx, ebx
je 0x531652
cmp esi, edi
jae 0x531652
movzx edx, byte [esi]
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + ebx], al
jne 0x531652
inc esi
cmp esi, edi
jb 0x531636
mov eax, dword [esp + 0x11c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
mov eax, dword [eax + 8]
or eax, dword [esp + 0x130]
test eax, 0x4000000
jne 0x531713
cmp dword [esp + 0xcc], 0
jne 0x531713
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x53169b
test byte [ecx + 4], 2
je 0x53169b
mov eax, ebx
sub eax, esi
cmp eax, dword [ecx + 0x28]
jb case.0x5317a4.996
cmp dword [esp + 0x104], 0
je 0x531713
mov eax, ebx
sub eax, esi
cmp eax, 0x3e8
jge 0x531713
mov eax, dword [esp + 0x30]
lea ecx, [esi + eax]
cmp ecx, dword [esp + 0x34]
jbe 0x531713
mov dl, byte [esp + 0x1f]
mov al, byte [esp + 0x12]
cmp dl, al
je 0x5316f3
cmp ecx, ebx
jae case.0x5317a4.996
movzx edi, dl
movzx edx, byte [ecx]
mov ebp, ecx
inc ecx
mov dword [esp + 0x34], ebp
cmp edx, edi
je 0x53170f
movzx eax, al
cmp edx, eax
je 0x53170f
cmp ecx, ebx
jae case.0x5317a4.996
mov al, byte [esp + 0x12]
jmp 0x5316d4
cmp ecx, ebx
jae case.0x5317a4.996
mov al, byte [ecx]
mov ebp, ecx
inc ecx
mov dword [esp + 0x34], ebp
cmp al, dl
je 0x53170f
cmp ecx, ebx
jb 0x5316f7
xor ebp, ebp
jmp 0x531964
cmp ebp, ebx
jae case.0x5317a4.996
push 0
push 0
lea eax, [esp + 0x4c]
mov dword [esp + 0xc8], esi
push eax
push 2
push esi
push dword [esp + 0xc8]
mov dword [esp + 0xe0], esi
push esi
mov dword [esp + 0x60], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0x88], 0
call fcn.00523400
add esp, 0x1c
mov ebp, eax
cmp dword [esp + 0xa8], 0
je 0x53178b
cmp dword [esp + 0x3c], 0
jne 0x53178b
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x114], esi
test ebp, ebp
jg case.default.0x5317a4
je case.0x5317a4.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x5317a4
jmp dword [eax*4 + 0x531af0]
mov eax, dword [esp + 0x6c]
mov edi, esi
mov dword [esp + 0x70], eax
jmp 0x5317e5
mov edi, dword [esp + 0xc0]
cmp edi, esi
ja 0x5317e5
cmp dword [esp + 0x38], 0
lea edi, [esi + 1]
mov dword [esp + 0x70], 0
je 0x5317e5
cmp edi, ebx
jae 0x5317e5
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x5317e5
inc edi
cmp edi, ebx
jb 0x5317d8
mov eax, dword [esp + 0x5c]
xor ebp, ebp
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x18], ebp
cmp dword [esp + 0x108], ebp
je 0x531832
test eax, eax
je 0x5318a0
cmp esi, ebx
jae 0x531832
push dword [esp + 0x24]
lea ecx, [esp + 0x64]
push ecx
push ebx
push eax
push esi
call fcn.00537150
add esp, 0x14
test eax, eax
jne 0x531960
mov ebx, dword [esp + 0xbc]
mov eax, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
cmp dword [esp + 0x10c], 0
mov esi, edi
jne 0x53195c
mov ecx, dword [esp + 0x14]
cmp edi, ecx
ja 0x53195c
mov edx, dword [esp + 0x11c]
cmp edi, dword [esp + 0x110]
jbe 0x53188c
cmp byte [edi - 1], 0xd
jne 0x53188c
cmp edi, ecx
jae 0x53188c
cmp byte [edi], 0xa
jne 0x53188c
test dword [edx + 0xc], 0x800
jne 0x53188c
cmp eax, 1
je 0x531889
cmp eax, 2
je 0x531889
cmp ebp, 2
jne 0x53188c
lea esi, [edi + 1]
mov edi, dword [esp + 0x20]
mov dword [esp + 0xf0], 0
jmp 0x531380
mov ebp, dword [esp + 0x60]
mov eax, ebx
sub eax, ebp
cmp esi, eax
ja 0x5318ca
mov al, byte [esi]
cmp al, byte [esp + 0x78]
jne 0x5318ca
cmp ebp, 1
je 0x53195c
mov al, byte [esi + 1]
cmp al, byte [esp + 0x79]
je 0x53195c
mov eax, dword [esp + 0x5c]
jmp 0x531836
cmp ebp, 1
je 0x5318e4
cmp ebp, 0xfffffc19
jne 0x531964
cmp dword [esp + 0x40], 0
mov edi, dword [esp + 0x28]
je 0x531935
mov esi, dword [esp + 0x50]
cmp edi, 4
jl 0x531917
lea eax, [edi*4 - 8]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [esp + 0x13c]
add eax, 8
push eax
call fcn.00588420
add esp, 0xc
cmp dword [esp + 0xd0], edi
jle 0x53192b
or dword [esp + 0xd4], 0x10000
push esi
call dword [0x64739c]
add esp, 4
test dword [esp + 0xd4], 0x10000
mov ecx, dword [esp + 0xd0]
je 0x531a03
cmp ecx, edi
jl 0x531a03
xor edi, edi
jmp 0x531a0c
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x40], 0
je 0x531978
push dword [esp + 0x50]
call dword [0x64739c]
add esp, 4
test ebp, ebp
je 0x53198e
cmp ebp, 0xfffffff4
je 0x53198e
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x108
ret
mov edi, dword [esp + 0x114]
test edi, edi
je 0x5319d1
mov ecx, dword [esp + 0x138]
cmp ecx, 1
jle 0x5319ca
mov eax, dword [esp + 0x134]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x124]
sub edx, esi
sub ebx, esi
mov dword [eax], edx
mov dword [eax + 4], ebx
cmp ecx, 2
jle 0x5319ca
sub edi, esi
mov dword [eax + 8], edi
mov eax, 0xfffffff4
jmp 0x5319d4
or eax, 0xffffffff
mov edx, dword [esp + 0x120]
test edx, edx
je 0x531ae2
test byte [edx], 0x20
je 0x531ae2
mov edx, dword [edx + 0x18]
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0x108
ret
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov eax, dword [esp + 0x11c]
movzx esi, word [eax + 0x1e]
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x134]
sar eax, 1
cmp eax, esi
jg 0x531a75
test edx, edx
je 0x531a75
lea eax, [esi*2 + 2]
cmp eax, dword [esp + 0x138]
lea ecx, [edx + ecx*4]
cmovg eax, dword [esp + 0x138]
xor ebx, ebx
lea eax, [edx + eax*4]
xor edx, edx
mov esi, eax
sub esi, ecx
add esi, 3
shr esi, 2
cmp ecx, eax
cmova esi, ebx
test esi, esi
je 0x531a6e
inc edx
mov dword [ecx], 0xffffffff
lea ecx, [ecx + 4]
cmp edx, esi
jb 0x531a60
mov edx, dword [esp + 0x134]
cmp dword [esp + 0x138], 2
jge 0x531a83
xor edi, edi
jmp 0x531aa4
mov eax, dword [esp + 0xc0]
sub eax, dword [esp + 0xb8]
mov dword [edx], eax
mov eax, dword [esp + 0xc4]
sub eax, dword [esp + 0xb8]
mov dword [edx + 4], eax
mov edx, dword [esp + 0x120]
test edx, edx
je 0x531ac0
test byte [edx], 0x20
je 0x531ac0
mov edx, dword [edx + 0x18]
mov ecx, dword [esp + 0xf0]
mov dword [edx], ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffe8
pop ebx
add esp, 0x108
ret
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret