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

Disassembly:
push ebp
sub esp, 0x70
mov eax, 0x5779cc
call fcn.00566e38
sub esp, 0x144
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov esi, edi
mov dword [ebp + 0x4c], edi
push 0x20000
mov dword [ebp - 0x14], esi
call fcn.00513f47
test eax, eax
jne 0x516f0f
xor ebx, ebx
lea eax, [edi + 0x20]
mov dword [ebp + 0x20], eax
lea ecx, [esi + 0x85]
mov byte [eax], bl
xorps xmm0, xmm0
mov al, bl
movlpd qword [ebp + 0x24], xmm0
mov edx, ebx
mov byte [ebp + 0x72], al
movlpd qword [ebp + 0x2c], xmm0
mov dword [ebp + 0x40], edx
mov dword [ebp + 0x48], edx
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp + 0x68], ecx
cmp byte [edi + 0x110], al
je 0x515e86
xor eax, eax
inc eax
mov byte [edi + 0x78], al
jmp 0x516275
mov dword [ebp + 0x54], ecx
cmp byte [ecx], al
je 0x516226
cmp byte [edi + 0x86], al
je 0x516226
mov ecx, dword [edi + 0x48]
mov eax, dword [edi + 0x4c]
add ecx, 4
adc eax, ebx
push eax
push ecx
push dword [edi + 0x68]
mov ecx, edi
call fcn.00517acf
mov eax, dword [edi + 0x24]
mov byte [edi + 0x22], bl
cmp eax, 0x6064b50
jne 0x515fa1
mov ecx, edi
mov byte [edi + 0x79], 1
call fcn.005172f2
mov esi, eax
mov eax, edx
mov dword [ebp + 0x60], eax
cmp eax, ebx
ja 0x515ee4
cmp esi, 0x2c
jb 0x515fcd
cmp eax, 0x40000000
ja 0x515fcd
jb 0x515ef9
cmp esi, ebx
jae 0x515fcd
push 0x2c
lea eax, [ebp - 0x120]
mov ecx, edi
push eax
call fcn.00517a8a
push 0x30
lea eax, [ebp - 0x150]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov byte [ebp - 0x150], bl
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x150]
push eax
call fcn.005156a5
lea ecx, [ebp - 0x150]
call fcn.00514ec0
test al, al
je 0x515fcd
mov eax, dword [ebp + 0x60]
add esi, 0xffffffd4
push ebx
adc eax, 0xffffffff
mov ecx, edi
push eax
push esi
call fcn.00517b82
test eax, eax
jne 0x516f0f
mov ecx, edi
call fcn.005172cd
cmp dword [edi + 0x24], 0x7064b50
jne 0x515fcd
push 0x10
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.00517a8a
cmp dword [ebp + 8], ebx
jne 0x515fcd
cmp dword [ebp + 0x14], ebx
jne 0x515fcd
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
jne 0x515fcd
mov ecx, edi
call fcn.005172cd
mov eax, dword [edi + 0x24]
cmp eax, 0x6054b50
jne 0x515fcd
cmp eax, 0x6054b50
jne 0x516011
push 0x12
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.00517a8a
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x28]
call fcn.0051541d
lea ecx, [ebp - 0x28]
call fcn.00514ef1
test al, al
jne 0x515fd5
xor eax, eax
inc eax
jmp 0x516f0f
push dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
push dword [edi + 0x48]
mov eax, dword [edi + 0x40]
push dword [edi + 0x68]
mov dword [edi + 0x3c], ecx
mov ecx, edi
mov dword [edi + 0x38], eax
mov byte [edi + 0x78], 1
call fcn.00517acf
test eax, eax
jne 0x516f0f
mov ecx, edi
call fcn.005172cd
mov ecx, dword [ebp + 0x68]
mov eax, ebx
mov dword [ebp + 0x68], ecx
jmp 0x516275
lea ecx, [ebp - 0xf4]
call fcn.00513e01
mov byte [ebp - 0x80], bl
lea eax, [ebp - 0xf4]
mov dword [ebp - 4], ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00516f23
test al, al
jne 0x516045
lea ecx, [ebp - 0xf4]
call fcn.0050f442
jmp 0x515fcd
xor eax, eax
mov ecx, edi
inc eax
mov dword [ebp - 4], eax
mov byte [edi + 0x78], al
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x7c]
call fcn.005157ca
mov esi, eax
mov dword [ebp + 0x6c], esi
test esi, esi
jne 0x516074
mov ecx, edi
call fcn.005172cd
xor eax, eax
mov dword [ebp - 4], ebx
inc eax
cmp esi, eax
je 0x51620a
test esi, esi
jne 0x5161d4
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x6c], esi
mov edx, dword [ecx + 4]
mov dword [ebp + 0x44], edx
test edx, edx
je 0x5161c6
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x48]
cmp ecx, dword [edi + 0x3c]
jg 0x5160b8
jl 0x5161c6
cmp edx, dword [edi + 0x38]
jb 0x5161c6
sub edx, dword [edi + 0x38]
mov dword [ebp + 0x60], edx
sbb ecx, dword [edi + 0x3c]
or dword [ebp + 0x34], 0xffffffff
or dword [ebp + 0x58], 0xffffffff
or dword [ebp + 0x38], 0xffffffff
or dword [ebp + 0x3c], 0xffffffff
cmp byte [edi + 0x7b], 0
mov dword [ebp - 0xac], edx
mov edx, ecx
mov dword [ebp + 0x54], ecx
mov ecx, dword [ebp + 0x7c]
mov dword [ebp - 0xa8], edx
jne 0x5160fd
lea edx, [ebp - 0xf4]
call fcn.005146f5
mov ecx, eax
xor eax, eax
inc eax
jmp 0x51617a
mov edx, ebx
cmp dword [ecx + 4], edx
jbe 0x5161c6
mov ecx, dword [ecx]
mov dword [ebp + 4], ecx
mov dword [ebp + 0x6c], esi
mov ecx, dword [ecx]
mov esi, dword [ecx + 0x20]
cmp esi, dword [ebp - 0xd4]
jne 0x516136
mov edi, dword [ebp + 0x60]
cmp dword [ecx + 0x48], edi
mov edi, dword [ebp + 0x4c]
jne 0x516136
mov edi, dword [ebp + 0x54]
cmp dword [ecx + 0x4c], edi
mov edi, dword [ebp + 0x4c]
jne 0x516136
mov dword [ebp + 0x34], edx
test edx, edx
je 0x516159
cmp esi, dword [ebp + 0x58]
jb 0x516159
jne 0x516168
mov edi, dword [ebp + 0x3c]
cmp dword [ecx + 0x4c], edi
mov edi, dword [ebp + 0x4c]
ja 0x516168
jb 0x516159
mov edi, dword [ebp + 0x38]
cmp dword [ecx + 0x48], edi
mov edi, dword [ebp + 0x4c]
jae 0x516168
mov dword [ebp + 0x58], esi
mov esi, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x4c]
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x3c], ecx
mov ecx, dword [ebp + 4]
inc edx
add ecx, 4
mov dword [ebp + 4], ecx
cmp edx, dword [ebp + 0x44]
jb 0x516110
mov ecx, dword [ebp + 0x34]
cmp ecx, 0xffffffff
je 0x5161c6
mov esi, dword [ebp + 0x7c]
mov eax, dword [esi]
mov edx, dword [eax + ecx*4]
lea ecx, [ebp - 0xf4]
call fcn.00513f9f
test al, al
jne 0x51619f
mov dword [ebp + 0x6c], 1
jmp 0x51620a
cmp byte [edi + 0x7b], 0
mov byte [edi + 0x6c], 1
je 0x5161b7
mov eax, dword [ebp + 0x38]
mov dword [edi + 0x60], eax
mov eax, dword [ebp + 0x3c]
mov dword [edi + 0x64], eax
jmp 0x51620a
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
mov dword [edi + 0x60], ecx
jmp 0x5161b2
mov dword [ebp + 0x6c], eax
jmp 0x51620a
lea ecx, [ebp - 0xf4]
call fcn.0050f442
jmp 0x516266
lea ecx, [ebp - 0xf4]
call fcn.0050f442
mov ecx, dword [ebp + 0x68]
mov edx, dword [ebp + 0x48]
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x40], edx
jmp 0x516275
lea eax, [ebp + 0x24]
mov byte [edi + 0x78], 1
push eax
lea eax, [ebp + 0x2c]
mov ecx, edi
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x7c]
call fcn.005157ca
mov esi, eax
test esi, esi
jne 0x51625b
mov ecx, edi
call fcn.005172cd
mov ecx, dword [ebp + 0x68]
mov edx, dword [ebp + 0x48]
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x40], edx
jmp 0x516273
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x68], eax
cmp esi, 1
je 0x51626d
mov eax, esi
jmp 0x516f0f
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x40], eax
mov eax, esi
mov esi, ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], ebx
mov ecx, dword [ebp + 0x7c]
mov dword [ebp - 4], 5
mov dword [ebp + 0x64], ebx
mov edx, dword [ecx + 4]
mov dword [ebp + 0x48], edx
test eax, eax
je 0x5165ff
call fcn.0050f7c0
mov ecx, dword [ebp + 0x20]
xor eax, eax
inc eax
mov word [edi + 0x7c], 0
cmp byte [edi + 0x112], 0
mov byte [ebp + 0x72], al
mov byte [edi + 0x7e], bl
mov byte [ecx], al
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
jne 0x516333
mov ecx, dword [ebp + 0x68]
cmp byte [ecx], 0
jne 0x5162fb
cmp byte [edi + 0x87], 0
je 0x51632c
cmp dword [edi + 0xac], ebx
jne 0x51632c
push dword [edi + 0x4c]
mov ecx, edi
push dword [edi + 0x48]
push ebx
call fcn.00517acf
mov dword [ebp + 0x60], eax
test eax, eax
je 0x516333
mov esi, eax
jmp 0x516434
mov eax, dword [edi + 0x40]
or eax, dword [edi + 0x44]
je 0x516313
lea edx, [edi + 0x48]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
jmp 0x516319
mov edx, dword [ebp - 0x14]
add edx, 0x48
push dword [edx + 4]
mov ecx, edi
push dword [edx]
push dword [edi + 0x68]
call fcn.00517acf
test eax, eax
je 0x516333
mov esi, eax
jmp 0x516434
lea eax, [edi + 0x18]
mov ecx, edi
mov dword [ebp + 0x54], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.005172cd
push dword [ebp + 0x7c]
mov ecx, edi
mov byte [edi + 0x80], 1
call fcn.0051707c
test eax, eax
jne 0x51632c
lea eax, [edi + 0x24]
mov dword [ebp + 4], eax
mov eax, dword [eax]
mov dword [ebp + 0x58], eax
cmp eax, 0x2014b50
je 0x516440
mov ecx, dword [ebp + 0x7c]
cmp dword [ecx + 4], ebx
jne 0x51637d
xor eax, eax
inc eax
jmp 0x51632c
add eax, 0xffffffe8
mov byte [ebp + 0x73], 1
cmp eax, 0xfffe8
ja 0x516426
mov ecx, edi
call fcn.005172de
test eax, eax
jne 0x516426
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
push dword [ebp + 0x58]
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 6
call fcn.00405117
push dword [ebp + 0x58]
mov ecx, edi
push dword [ebp + 0x5c]
call fcn.00517a8a
mov ecx, edi
call fcn.005172cd
cmp dword [edi + 0x24], 0x2014b50
jne 0x516402
mov eax, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x5c]
cmp dword [ecx + eax - 0x18], eax
jne 0x516402
cmp dword [ecx + eax - 0x14], ebx
jne 0x516402
push 0x10
add ecx, 0xfffffff0
add eax, ecx
push str.APK_Sig_Block_42
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x516402
mov byte [ebp + 0x73], bl
mov byte [edi + 0x7a], 1
push dword [ebp + 0x5c]
mov byte [ebp - 4], 5
call fcn.00566e0e
cmp byte [ebp + 0x73], 0
pop ecx
jne 0x516426
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + 0x18]
add ecx, 0x24
mov dword [ebp + 0x54], eax
mov dword [ebp + 4], ecx
jmp 0x516443
xor eax, eax
mov esi, ebx
inc eax
mov byte [edi + 0x82], al
mov byte [edi + 0x7c], al
push ebx
call fcn.00566e0e
pop ecx
jmp 0x516266
lea eax, [edi + 0x18]
mov ecx, dword [edi + 8]
xor edx, edx
sub ecx, dword [edi + 0xc]
mov byte [edi + 0x20], 1
sbb edx, ebx
add ecx, dword [edi + 0x10]
adc edx, dword [edi + 0x14]
add ecx, 0xfffffffc
mov dword [ebp + 0x28], ecx
mov ecx, dword [edi + 0x9c]
adc edx, 0xffffffff
mov dword [ebp + 0x40], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x44], ecx
lea ecx, [ebp - 0xf4]
mov dword [ebp + 0x30], edx
mov dword [ebp + 0x20], eax
call fcn.00513e01
mov byte [ebp - 0x80], bl
jmp 0x51651c
lea ecx, [ebp + 0xc]
call fcn.0040393c
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp + 0xc]
call fcn.00513ebf
mov edx, dword [edi + 0x34]
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0x6c], esi
test edx, edx
je 0x5164e9
test esi, 0xfff
jne 0x5164e9
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x54]
mov dword [ebp - 0x5c], ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0x60], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x60]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x10]
mov dword [ebp + 0x60], eax
test eax, eax
jne 0x516573
mov ecx, edi
call fcn.005172cd
mov eax, dword [ebp + 4]
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 5
cmp dword [eax], 0x2014b50
jne 0x5165ae
call fcn.0050f442
lea ecx, [ebp - 0xf4]
call fcn.00513e01
mov byte [ebp - 0x80], bl
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.0051590b
mov dword [ebp + 0x34], eax
test eax, eax
je 0x51648a
lea ecx, [ebp - 0xf4]
call fcn.0050f442
test esi, esi
je 0x51656b
mov eax, dword [ebp + 0xc]
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x516567
mov ecx, edi
call fcn.0050f442
push 0x78
push edi
call fcn.00566d5f
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
test esi, esi
jne 0x51654b
mov ebx, dword [ebp + 0x34]
jmp 0x516e39
lea ecx, [ebp - 0xf4]
call fcn.0050f442
test esi, esi
je 0x516e36
mov eax, dword [ebp + 0xc]
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x5165a5
mov ecx, edi
call fcn.0050f442
push 0x78
push edi
call fcn.00566d5f
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
test esi, esi
jne 0x516589
jmp 0x516e36
call fcn.0050f442
mov eax, dword [edi + 0x18]
mov ecx, esi
sub eax, dword [ebp + 0x44]
mov edx, ecx
mov dword [ebp + 0x3c], eax
mov eax, dword [edi + 0x1c]
sbb eax, dword [ebp + 0x20]
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x28]
sub eax, dword [edi + 0x38]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x30]
sbb eax, dword [edi + 0x3c]
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x64], edx
test edx, edx
je 0x516623
mov eax, dword [ebp + 0xc]
mov byte [edi + 0x6c], 1
mov dword [ebp + 0x64], edx
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
jmp 0x516623
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp + 0x30], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp + 0x28], eax
push 0x30
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi + 8]
xor ecx, ecx
add esp, 0xc
mov byte [ebp - 0x58], bl
sub eax, dword [edi + 0xc]
xorps xmm0, xmm0
movlpd qword [ebp + 0x1c], xmm0
sbb ecx, ebx
mov byte [ebp + 0x73], bl
add eax, dword [edi + 0x10]
adc ecx, dword [edi + 0x14]
add eax, 0xfffffffc
mov dword [ebp + 0x34], eax
adc ecx, 0xffffffff
or dword [ebp + 0x60], 0xffffffff
cmp dword [edi + 0x24], 0x6064b50
mov dword [ebp + 4], ecx
jne 0x5167cf
mov eax, dword [edi + 0x9c]
mov ecx, edi
mov dword [ebp + 0x60], eax
xor eax, eax
inc eax
mov byte [ebp + 0x73], al
mov byte [edi + 0x79], al
call fcn.005172f2
mov dword [ebp + 0x20], edx
mov ecx, eax
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x50], eax
cmp edx, ebx
ja 0x5166a1
cmp ecx, 0x2c
jb 0x516795
cmp edx, 0x40000000
ja 0x516798
jb 0x5166b7
cmp ecx, ebx
jae 0x516798
push 0x2c
lea eax, [ebp - 0x120]
mov ecx, edi
push eax
call fcn.00517a8a
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x58]
call fcn.005156a5
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x20]
push dword [eax + 4]
mov eax, dword [ebp + 0x44]
add eax, 0xffffffd4
adc ecx, 0xffffffff
push ecx
push eax
mov ecx, edi
call fcn.00517b82
mov dword [ebp + 0x44], eax
test eax, eax
je 0x51672c
mov ebx, dword [ebp + 0x64]
test ebx, ebx
je 0x516725
mov eax, dword [ebp + 0xc]
dec ebx
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x51671e
mov ecx, esi
call fcn.0050f442
push 0x78
push esi
call fcn.00566d5f
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
test ebx, ebx
jne 0x516702
mov eax, dword [ebp + 0x44]
mov ebx, eax
jmp 0x516e39
mov ecx, edi
call fcn.005172cd
cmp dword [edi + 0x24], 0x7064b50
je 0x516773
mov esi, dword [ebp + 0x64]
mov byte [edi + 0x7c], 1
test esi, esi
je 0x516e39
mov eax, dword [ebp + 0xc]
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x51676a
mov ecx, edi
call fcn.0050f442
push 0x78
push edi
call fcn.00566d5f
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
test esi, esi
jne 0x51674e
jmp 0x516e39
push 0x10
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.00517a8a
mov eax, dword [ebp - 0x70]
mov ecx, edi
mov dword [ebp + 0x20], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp + 0x44], eax
call fcn.005172cd
jmp 0x5167db
mov eax, dword [ebp + 0x50]
mov byte [edi + 0x7c], 1
test eax, eax
je 0x516e39
mov edi, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x50], eax
mov esi, dword [edi + eax*4]
test esi, esi
je 0x5167c6
mov ecx, esi
call fcn.0050f442
push 0x78
push esi
call fcn.00566d5f
mov eax, dword [ebp + 0x50]
pop ecx
pop ecx
test eax, eax
jne 0x5167a7
jmp 0x516e39
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x20], eax
cmp dword [edi + 0x24], 0x6054b50
je 0x516818
mov byte [edi + 0x7c], 1
test esi, esi
je 0x516e39
mov eax, dword [ebp + 0xc]
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x51680f
mov ecx, edi
call fcn.0050f442
push 0x78
push edi
call fcn.00566d5f
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
test esi, esi
jne 0x5167f3
jmp 0x516e39
push 0x12
lea eax, [ebp - 0x74]
mov byte [edi + 0x22], bl
push eax
mov ecx, edi
call fcn.00517a8a
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x28]
call fcn.0051541d
mov dl, byte [ebp + 0x73]
mov ecx, 0xffff
mov ax, word [ebp - 0x28]
mov dword [ebp + 0x64], ecx
test dl, dl
je 0x51684c
cmp ax, cx
je 0x516856
movzx eax, ax
mov dword [ebp - 0x50], eax
test dl, dl
je 0x516864
mov ax, word [ebp - 0x26]
cmp ax, cx
jne 0x516868
mov ecx, dword [ebp - 0x4c]
jmp 0x516872
mov ax, word [ebp - 0x26]
movzx ecx, ax
mov dword [ebp - 0x4c], ecx
test dl, dl
je 0x51687e
mov ax, word [ebp - 0x24]
cmp ax, word [ebp + 0x64]
je 0x516893
jmp 0x516882
mov ax, word [ebp - 0x24]
movzx eax, ax
cdq
mov dword [ebp - 0x44], edx
mov dl, byte [ebp + 0x73]
mov dword [ebp - 0x48], eax
test dl, dl
je 0x51689f
mov ax, word [ebp - 0x22]
cmp ax, word [ebp + 0x64]
jne 0x5168a3
jmp 0x5168b4
mov ax, word [ebp - 0x22]
movzx eax, ax
cdq
mov dword [ebp - 0x3c], edx
mov dl, byte [ebp + 0x73]
mov dword [ebp - 0x40], eax
test dl, dl
je 0x5168be
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x5168c1
jmp 0x5168cb
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
test dl, dl
je 0x5168d5
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
jne 0x5168d8
jmp 0x5168de
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp + 0x3c]
xor edx, edx
inc edx
cmp dword [ebp - 0x38], esi
push 0
pop esi
movzx eax, dl
cmovne eax, esi
cmp byte [ebp + 0x73], 0
mov esi, dword [ebp + 0x6c]
mov dword [ebp + 0x64], eax
je 0x516927
mov edi, dword [ebp + 0x48]
cmp dword [ebp - 0x40], edi
mov edi, dword [ebp + 0x4c]
jne 0x516922
cmp dword [ebp - 0x3c], ebx
jne 0x516922
mov eax, dword [ebp + 0x3c]
cmp dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x64]
jne 0x516922
mov esi, dword [ebp + 0x54]
cmp dword [ebp - 0x34], esi
mov esi, dword [ebp + 0x6c]
je 0x516927
mov al, bl
mov dword [ebp + 0x64], eax
cmp byte [edi + 0x87], 0
je 0x516947
cmp dword [ebp + 0x40], ecx
mov esi, dword [ebp + 0x6c]
mov cl, byte [ebp + 0x72]
je 0x516a12
mov byte [edi + 0x7c], dl
jmp 0x516a12
mov cl, byte [ebp + 0x72]
test cl, cl
je 0x516a12
test al, al
je 0x516a16
cmp byte [ebp + 0x73], 0
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x68], ecx
je 0x516b39
mov esi, dword [ebp + 0x60]
cmp esi, dword [edi + 0xa8]
mov esi, dword [ebp + 0x6c]
jne 0x5169d0
mov eax, dword [ebp + 0x34]
sub eax, dword [ebp + 0x20]
mov edi, dword [ebp + 4]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 4]
sbb eax, dword [ebp + 0x44]
mov dword [ebp + 0x60], eax
cmp dword [ebp + 0x60], edi
mov eax, dword [ebp + 0x50]
mov edi, dword [ebp + 0x4c]
jg 0x5169d0
jl 0x5169ab
mov esi, dword [ebp + 0x34]
cmp dword [ebp + 0x40], esi
mov esi, dword [ebp + 0x6c]
ja 0x5169d0
mov ecx, dword [ebp + 0x60]
cmp ecx, dword [edi + 0x4c]
jl 0x516b27
jg 0x5169c5
mov eax, dword [ebp + 0x40]
cmp eax, dword [edi + 0x48]
jbe 0x516b2a
mov ecx, dword [ebp + 0x68]
mov al, bl
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x50]
sub dword [ebp + 0x50], eax
mov edi, dword [ebp + 0x4c]
sbb dword [ebp + 0x68], ecx
mov ecx, dword [ebp + 0x50]
mov eax, ecx
or eax, dword [ebp + 0x68]
je 0x516a0c
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x60], ebx
cmp dword [eax + 4], ebx
jbe 0x516a0c
mov edi, dword [ebp + 0x68]
mov esi, eax
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
add dword [eax + 0x48], ecx
adc dword [eax + 0x4c], edi
inc ebx
cmp ebx, dword [esi + 4]
jb 0x5169f3
mov edi, dword [ebp + 0x4c]
xor ebx, ebx
mov esi, dword [ebp + 0x6c]
mov cl, byte [ebp + 0x72]
mov eax, dword [ebp + 0x64]
test al, al
jne 0x516a19
mov byte [edi + 0x7c], dl
cmp byte [edi + 0x87], 0
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x8c], eax
jne 0x516a91
test eax, eax
jne 0x516a59
cmp byte [edi + 0xa6], al
je 0x516a59
cmp byte [edi + 0xa2], al
je 0x516a59
mov eax, dword [edi + 0xc4]
xor esi, esi
mov dword [edi + 0xc8], ebx
mov word [eax], si
mov esi, dword [ebp + 0x6c]
mov byte [edi + 0xa6], bl
test cl, cl
je 0x516a8b
cmp dword [edi + 0x8c], ebx
je 0x516a8b
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x60], ebx
cmp dword [eax + 4], ebx
jbe 0x516a8b
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [eax + ebx*4]
inc ebx
mov eax, dword [edi + 0x8c]
mov dword [ecx + 0x20], eax
cmp ebx, dword [esi + 4]
jb 0x516a72
mov esi, dword [ebp + 0x6c]
xor ebx, ebx
mov byte [edi + 0x88], dl
cmp byte [ebp + 0x73], 0
je 0x516bc3
cmp dword [ebp - 0x50], 0
jne 0x516ab7
mov ecx, dword [ebp + 0x20]
add ecx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
adc eax, dword [ebp + 0x44]
cmp dword [ebp + 0x34], ecx
jne 0x516af4
cmp dword [ebp + 4], eax
jne 0x516af4
mov eax, dword [ebp + 0x48]
cmp dword [ebp - 0x40], eax
jne 0x516af4
cmp dword [ebp - 0x3c], ebx
jne 0x516af4
mov eax, dword [ebp + 0x3c]
cmp dword [ebp - 0x38], eax
jne 0x516af4
mov eax, dword [ebp + 0x54]
cmp dword [ebp - 0x34], eax
jne 0x516af4
mov eax, dword [ebp + 0x38]
cmp dword [ebp - 0x30], eax
jne 0x516ae8
mov eax, dword [ebp + 0x58]
cmp dword [ebp - 0x2c], eax
je 0x516bc3
mov eax, dword [ebp + 0x7c]
cmp dword [eax + 4], ebx
je 0x516bc3
mov byte [edi + 0x7c], dl
test esi, esi
je 0x516e39
mov eax, dword [ebp + 0xc]
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x516b1e
mov ecx, edi
call fcn.0050f442
push 0x78
push edi
call fcn.00566d5f
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
test esi, esi
jne 0x516b02
jmp 0x516e39
mov eax, dword [ebp + 0x40]
mov esi, dword [ebp + 0x28]
sub esi, eax
mov dword [ebp + 0x38], esi
mov esi, dword [ebp + 0x30]
sbb esi, ecx
jmp 0x516bb2
cmp dword [ebp + 0x48], 0
je 0x5169d0
mov esi, dword [ebp + 0x40]
cmp esi, dword [edi + 0xa8]
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x68]
mov esi, dword [ebp + 0x6c]
jne 0x5169d0
mov eax, dword [ebp + 0x28]
sub eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x30]
sbb ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp + 0x30]
jg 0x5169c5
jl 0x516b7b
cmp eax, dword [ebp + 0x28]
ja 0x5169c5
cmp ecx, dword [edi + 0x4c]
jl 0x516ba9
jg 0x516b87
cmp eax, dword [edi + 0x48]
jbe 0x516ba9
sub eax, dword [ebp + 0x50]
mov edi, dword [ebp + 0x4c]
sbb ecx, dword [ebp + 0x68]
mov dword [ebp + 0x60], ecx
mov ecx, dword [ebp + 0x68]
test eax, eax
jne 0x5169c8
mov byte [edi + 0x83], dl
jmp 0x5169cd
mov esi, dword [ebp - 0x30]
mov dword [ebp + 0x38], esi
mov esi, dword [ebp - 0x2c]
mov dword [ebp + 0x58], esi
mov esi, dword [ebp + 0x6c]
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x38], eax
jmp 0x5169d0
cmp byte [ebp + 0x64], 0
je 0x516d0d
test esi, esi
je 0x516d0d
mov eax, ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x20], ebx
mov ecx, ebx
mov byte [ebp - 4], 8
mov dword [ebp + 0x54], ebx
mov byte [edi + 0x81], dl
mov dword [ebp + 0x58], ecx
mov edx, dword [edi + 0x34]
test edx, edx
je 0x516c2c
test ecx, 0x3fff
jne 0x516c2c
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 4], ebx
mov eax, dword [eax + 4]
add eax, dword [ebp + 0x1c]
mov dword [ebp], eax
lea eax, [edi + 0x18]
mov ecx, dword [edx]
push eax
lea eax, [ebp]
push eax
push edx
call dword [ecx + 0x10]
mov dword [ebp + 0x60], eax
test eax, eax
jne 0x516e0a
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x54]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x28], ecx
cmp edx, 0xffffffff
je 0x516c9a
cmp edx, dword [eax + 4]
jae 0x516c9a
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
mov dword [ebp + 0x60], eax
mov eax, dword [eax + 0x20]
cmp eax, dword [ecx + 0x20]
jne 0x516c93
mov eax, dword [ebp + 0x60]
mov esi, dword [ecx + 0x48]
cmp dword [eax + 0x48], esi
mov esi, dword [ebp + 0x6c]
jne 0x516c6e
mov esi, dword [ecx + 0x4c]
cmp dword [eax + 0x4c], esi
mov esi, dword [ebp + 0x6c]
je 0x516c87
cmp byte [edi + 0x83], 0
je 0x516c93
mov esi, dword [ecx + 0x48]
cmp dword [eax + 0x48], esi
mov esi, dword [ebp + 0x6c]
jne 0x516c93
cmp ebx, dword [ecx + 0x4c]
jne 0x516c93
mov dword [ebp + 0x60], edx
inc edx
mov dword [ebp + 0x54], edx
jmp 0x516d28
or dword [ebp + 0x54], 0xffffffff
mov eax, dword [ebp + 0x7c]
mov edx, ecx
mov ecx, eax
call fcn.005146f5
mov dword [ebp + 0x60], eax
cmp eax, 0xffffffff
jne 0x516d25
push dword [ebp + 0x58]
lea ecx, [ebp + 0x18]
call fcn.00406b7d
mov byte [edi + 0x7c], 1
mov ecx, dword [ebp + 0x58]
inc ecx
mov dword [ebp + 0x58], ecx
cmp ecx, esi
jb 0x516bf2
cmp dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x60], ebx
jbe 0x516cff
mov edi, eax
mov eax, dword [edi + ebx*4]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + eax*4]
mov ecx, dword [ebp + 0x7c]
call fcn.0040393c
mov ecx, dword [ebp + 0x7c]
push esi
call fcn.00513ebf
inc ebx
cmp ebx, dword [ebp + 0x1c]
jb 0x516cd7
mov edi, dword [ebp + 0x4c]
xor ebx, ebx
mov eax, dword [ebp + 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.00566e0e
xor edx, edx
pop ecx
inc edx
mov si, word [ebp - 0x22]
cmp si, word [ebp - 0x24]
jae 0x516e49
lea eax, [edi + 0x7c]
mov byte [eax], dl
jmp 0x516e4f
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x7c]
mov edx, dword [ebp + 0x60]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
lea edx, [ecx + 0x24]
mov dword [ebp + 0x30], eax
lea ecx, [eax + 0x24]
call fcn.0040d558
test al, al
jne 0x516cb6
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x28]
mov eax, dword [edx + 0x10]
cmp eax, dword [ecx + 0x10]
jne 0x516cb6
mov eax, dword [edx + 0x14]
cmp eax, dword [ecx + 0x14]
jne 0x516cb6
mov eax, dword [edx + 8]
cmp eax, dword [ecx + 8]
jne 0x516cb6
mov eax, dword [edx + 0xc]
cmp eax, dword [ecx + 0xc]
jne 0x516cb6
mov edx, ecx
mov ecx, dword [ebp + 0x30]
call fcn.00514b7a
test al, al
je 0x516cb6
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x28]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x1c]
jne 0x516cb6
mov ax, word [ecx + 0x40]
mov word [edx + 0x40], ax
lea eax, [ecx + 0x50]
push eax
lea ecx, [edx + 0x50]
call fcn.00513e92
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x30]
mov ax, word [ecx + 0x42]
mov word [edx + 0x42], ax
lea esi, [edx + 0x60]
mov eax, dword [ecx + 0x44]
mov dword [edx + 0x44], eax
lea eax, [ecx + 0x60]
mov dword [ebp + 0x60], esi
cmp eax, esi
mov esi, dword [ebp + 0x6c]
je 0x516dee
push dword [eax + 4]
mov ecx, dword [ebp + 0x60]
push dword [eax]
call fcn.0040c0e5
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x30]
mov al, byte [ecx + 0x69]
mov byte [edx + 0x69], al
mov eax, 0x800
test word [ecx], ax
je 0x516cba
or word [edx], ax
jmp 0x516cba
push dword [ebp + 0x18]
call fcn.00566e0e
mov eax, dword [ebp + 0xc]
pop ecx
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x516e32
mov ecx, edi
call fcn.0050f442
push 0x78
push edi
call fcn.00566d5f
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
test esi, esi
jne 0x516e16
mov ebx, dword [ebp + 0x60]
push dword [ebp + 0xc]
call fcn.00566e0e
pop ecx
mov eax, ebx
jmp 0x516f0f
mov eax, dword [ebp - 0x14]
add eax, 0x7c
cmp word [ebp - 0x28], 0
mov ecx, eax
jne 0x516e66
cmp si, word [ebp - 0x24]
je 0x516e66
mov ecx, dword [ebp - 0x14]
mov byte [eax], dl
add ecx, 0x7c
cmp byte [ebp + 0x73], 0
mov esi, dword [ebp + 0x7c]
mov esi, dword [esi + 4]
je 0x516e99
cmp dword [ebp - 0x40], esi
jne 0x516e91
cmp dword [ebp - 0x3c], ebx
jne 0x516e91
movzx eax, word [ebp - 0x22]
cmp eax, esi
je 0x516e95
mov esi, 0xffff
mov eax, ecx
cmp word [ebp - 0x22], si
je 0x516e95
mov ecx, eax
mov byte [ecx], dl
mov esi, ecx
jmp 0x516ece
mov edi, dword [ebp + 0x7c]
mov esi, ecx
movzx eax, word [ebp - 0x22]
cmp eax, dword [edi + 4]
mov edi, dword [ebp + 0x4c]
jbe 0x516eb1
mov esi, edi
mov byte [ecx], dl
add esi, 0x7c
mov eax, dword [ebp + 0x48]
cmp dword [ebp - 0x40], eax
jne 0x516ebe
cmp dword [ebp - 0x3c], ebx
je 0x516ece
cmp word [ebp - 0x40], ax
je 0x516ec8
mov byte [ecx], dl
jmp 0x516ece
mov byte [edi + 0x84], dl
movzx eax, word [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [edi + 0x70]
push eax
call fcn.0051579e
mov eax, dword [ebp + 0x48]
mov byte [edi + 0x20], bl
cmp word [ebp - 0x40], ax
jne 0x516f02
mov eax, dword [ebp + 0x3c]
cmp dword [ebp - 0x38], eax
jne 0x516f02
mov eax, dword [ebp + 0x38]
cmp dword [ebp - 0x30], eax
je 0x516f05
mov eax, dword [ebp + 0x7c]
cmp dword [eax + 4], ebx
je 0x516f05
mov byte [esi], 1
lea ecx, [ebp + 0xc]
call fcn.0050f379
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x74
leave
ret 4