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

Disassembly:
push ebp
sub esp, 0x70
mov eax, 0x576fe5
call fcn.00566548
sub esp, 0x140
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov esi, edi
mov dword [ebp + 0x54], edi
push 0x20000
mov dword [ebp], esi
call fcn.00513bf3
test eax, eax
jne 0x516bad
xor ebx, ebx
lea eax, [edi + 0x20]
mov dword [ebp + 0x40], eax
lea ecx, [esi + 0x85]
mov byte [eax], bl
xorps xmm0, xmm0
mov al, bl
movlpd qword [ebp + 0x2c], xmm0
mov edx, ebx
mov byte [ebp + 0x72], al
movlpd qword [ebp + 0x1c], xmm0
mov dword [ebp + 0x50], edx
mov dword [ebp + 0x48], edx
movlpd qword [ebp - 0x5c], xmm0
mov dword [ebp + 0x68], ecx
cmp byte [edi + 0x110], al
je 0x515b23
xor eax, eax
inc eax
mov byte [edi + 0x78], al
jmp 0x515f13
mov dword [ebp + 8], ecx
cmp byte [ecx], al
je 0x515ec4
cmp byte [edi + 0x86], al
je 0x515ec4
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.0051776d
mov eax, dword [edi + 0x24]
mov byte [edi + 0x22], bl
cmp eax, 0x6064b50
jne 0x515c3e
mov ecx, edi
mov byte [edi + 0x79], 1
call fcn.00516f90
mov esi, eax
mov eax, edx
mov dword [ebp + 0x60], eax
cmp eax, ebx
ja 0x515b81
cmp esi, 0x2c
jb 0x515c6a
cmp eax, 0x40000000
ja 0x515c6a
jb 0x515b96
cmp esi, ebx
jae 0x515c6a
push 0x2c
lea eax, [ebp - 0x11c]
mov ecx, edi
push eax
call fcn.00517728
push 0x30
lea eax, [ebp - 0x14c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov byte [ebp - 0x14c], bl
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x14c]
push eax
call fcn.00515342
lea ecx, [ebp - 0x14c]
call fcn.00514b5d
test al, al
je 0x515c6a
mov eax, dword [ebp + 0x60]
add esi, 0xffffffd4
push ebx
adc eax, 0xffffffff
mov ecx, edi
push eax
push esi
call fcn.00517820
test eax, eax
jne 0x516bad
mov ecx, edi
call fcn.00516f6b
cmp dword [edi + 0x24], 0x7064b50
jne 0x515c6a
push 0x10
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00517728
cmp dword [ebp + 0xc], ebx
jne 0x515c6a
cmp dword [ebp + 0x18], ebx
jne 0x515c6a
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
jne 0x515c6a
mov ecx, edi
call fcn.00516f6b
mov eax, dword [edi + 0x24]
cmp eax, 0x6054b50
jne 0x515c6a
cmp eax, 0x6054b50
jne 0x515cae
push 0x12
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.00517728
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x24]
call fcn.005150ba
lea ecx, [ebp - 0x24]
call fcn.00514b8e
test al, al
jne 0x515c72
xor eax, eax
inc eax
jmp 0x516bad
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.0051776d
test eax, eax
jne 0x516bad
mov ecx, edi
call fcn.00516f6b
mov ecx, dword [ebp + 0x68]
mov eax, ebx
mov dword [ebp + 0x68], ecx
jmp 0x515f13
lea ecx, [ebp - 0xf0]
call fcn.00513aad
mov byte [ebp - 0x7c], bl
lea eax, [ebp - 0xf0]
mov dword [ebp - 4], ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00516bc1
test al, al
jne 0x515ce2
lea ecx, [ebp - 0xf0]
call fcn.0050f0ec
jmp 0x515c6a
xor eax, eax
mov ecx, edi
inc eax
mov dword [ebp - 4], eax
mov byte [edi + 0x78], al
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x7c]
call fcn.00515467
mov esi, eax
mov dword [ebp + 0x6c], esi
test esi, esi
jne 0x515d11
mov ecx, edi
call fcn.00516f6b
xor eax, eax
mov dword [ebp - 4], ebx
inc eax
cmp esi, eax
je 0x515ea8
test esi, esi
jne 0x515e72
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x6c], esi
cmp dword [ecx + 4], esi
je 0x515e64
mov edx, dword [edi + 0x4c]
mov ecx, dword [edi + 0x48]
cmp edx, dword [edi + 0x3c]
jg 0x515d50
jl 0x515e64
cmp ecx, dword [edi + 0x38]
jb 0x515e64
sub ecx, dword [edi + 0x38]
mov dword [ebp + 0x60], ecx
sbb edx, 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 + 0x24], edx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], edx
jne 0x515d98
mov esi, dword [ebp + 0x7c]
lea edx, [ebp - 0xf0]
mov ecx, esi
call fcn.005143a1
mov ecx, eax
xor eax, eax
inc eax
jmp 0x515e1b
mov ecx, dword [ebp + 0x7c]
mov edx, ebx
cmp dword [ecx + 4], edx
jbe 0x515e64
mov ecx, dword [ecx]
mov dword [ebp + 8], ecx
mov dword [ebp + 0x6c], esi
mov ecx, dword [ecx]
mov esi, dword [ecx + 0x20]
cmp esi, dword [ebp - 0xd0]
jne 0x515dd4
mov edi, dword [ebp + 0x60]
cmp dword [ecx + 0x48], edi
mov edi, dword [ebp + 0x54]
jne 0x515dd4
mov edi, dword [ebp + 0x24]
cmp dword [ecx + 0x4c], edi
mov edi, dword [ebp + 0x54]
jne 0x515dd4
mov dword [ebp + 0x34], edx
test edx, edx
je 0x515df7
cmp esi, dword [ebp + 0x58]
jb 0x515df7
jne 0x515e06
mov edi, dword [ebp + 0x3c]
cmp dword [ecx + 0x4c], edi
mov edi, dword [ebp + 0x54]
ja 0x515e06
jb 0x515df7
mov edi, dword [ebp + 0x38]
cmp dword [ecx + 0x48], edi
mov edi, dword [ebp + 0x54]
jae 0x515e06
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 esi, dword [ebp + 0x7c]
inc edx
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp + 8], ecx
cmp edx, dword [esi + 4]
jb 0x515dae
mov ecx, dword [ebp + 0x34]
cmp ecx, 0xffffffff
je 0x515e64
mov eax, dword [esi]
mov edx, dword [eax + ecx*4]
lea ecx, [ebp - 0xf0]
call fcn.00513c4b
test al, al
jne 0x515e3d
mov dword [ebp + 0x6c], 1
jmp 0x515ea8
cmp byte [edi + 0x7b], 0
mov byte [edi + 0x6c], 1
je 0x515e55
mov eax, dword [ebp + 0x38]
mov dword [edi + 0x60], eax
mov eax, dword [ebp + 0x3c]
mov dword [edi + 0x64], eax
jmp 0x515ea8
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
mov dword [edi + 0x60], ecx
jmp 0x515e50
mov dword [ebp + 0x6c], eax
jmp 0x515ea8
lea ecx, [ebp - 0xf0]
call fcn.0050f0ec
jmp 0x515f04
lea ecx, [ebp - 0xf0]
call fcn.0050f0ec
mov ecx, dword [ebp + 0x68]
mov edx, dword [ebp + 0x48]
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x50], edx
jmp 0x515f13
lea eax, [ebp + 0x2c]
mov byte [edi + 0x78], 1
push eax
lea eax, [ebp + 0x1c]
mov ecx, edi
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x7c]
call fcn.00515467
mov esi, eax
test esi, esi
jne 0x515ef9
mov ecx, edi
call fcn.00516f6b
mov ecx, dword [ebp + 0x68]
mov edx, dword [ebp + 0x48]
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x50], edx
jmp 0x515f11
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x68], eax
cmp esi, 1
je 0x515f0b
mov eax, esi
jmp 0x516bad
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x50], eax
mov eax, esi
mov esi, ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x18], 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 0x51629d
call fcn.0050f46a
mov ecx, dword [ebp + 0x40]
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 0x515fd1
mov ecx, dword [ebp + 0x68]
cmp byte [ecx], 0
jne 0x515f99
cmp byte [edi + 0x87], 0
je 0x515fca
cmp dword [edi + 0xac], ebx
jne 0x515fca
push dword [edi + 0x4c]
mov ecx, edi
push dword [edi + 0x48]
push ebx
call fcn.0051776d
mov dword [ebp + 0x60], eax
test eax, eax
je 0x515fd1
mov esi, eax
jmp 0x5160d2
mov eax, dword [edi + 0x40]
or eax, dword [edi + 0x44]
je 0x515fb1
lea edx, [edi + 0x48]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
jmp 0x515fb7
mov edx, dword [ebp]
add edx, 0x48
push dword [edx + 4]
mov ecx, edi
push dword [edx]
push dword [edi + 0x68]
call fcn.0051776d
test eax, eax
je 0x515fd1
mov esi, eax
jmp 0x5160d2
lea eax, [edi + 0x18]
mov ecx, edi
mov dword [ebp + 8], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00516f6b
push dword [ebp + 0x7c]
mov ecx, edi
mov byte [edi + 0x80], 1
call fcn.00516d1a
test eax, eax
jne 0x515fca
lea eax, [edi + 0x24]
mov dword [ebp + 0x34], eax
mov eax, dword [eax]
mov dword [ebp + 0x58], eax
cmp eax, 0x2014b50
je 0x5160de
mov ecx, dword [ebp + 0x7c]
cmp dword [ecx + 4], ebx
jne 0x51601b
xor eax, eax
inc eax
jmp 0x515fca
add eax, 0xffffffe8
mov byte [ebp + 0x73], 1
cmp eax, 0xfffe8
ja 0x5160c4
mov ecx, edi
call fcn.00516f7c
test eax, eax
jne 0x5160c4
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.00405170
push dword [ebp + 0x58]
mov ecx, edi
push dword [ebp + 0x5c]
call fcn.00517728
mov ecx, edi
call fcn.00516f6b
cmp dword [edi + 0x24], 0x2014b50
jne 0x5160a0
mov eax, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x5c]
cmp dword [ecx + eax - 0x18], eax
jne 0x5160a0
cmp dword [ecx + eax - 0x14], ebx
jne 0x5160a0
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 0x5160a0
mov byte [ebp + 0x73], bl
mov byte [edi + 0x7a], 1
push dword [ebp + 0x5c]
mov byte [ebp - 4], 5
call fcn.0056651e
cmp byte [ebp + 0x73], 0
pop ecx
jne 0x5160c4
mov ecx, dword [ebp]
lea eax, [ecx + 0x18]
add ecx, 0x24
mov dword [ebp + 8], eax
mov dword [ebp + 0x34], ecx
jmp 0x5160e1
xor eax, eax
mov esi, ebx
inc eax
mov byte [edi + 0x82], al
mov byte [edi + 0x7c], al
push ebx
call fcn.0056651e
pop ecx
jmp 0x515f04
lea eax, [edi + 0x18]
mov edx, dword [edi + 8]
xor ecx, ecx
sub edx, dword [edi + 0xc]
mov byte [edi + 0x20], 1
sbb ecx, ebx
add edx, dword [edi + 0x10]
adc ecx, dword [edi + 0x14]
add edx, 0xfffffffc
mov dword [ebp + 0x20], edx
adc ecx, 0xffffffff
mov dword [ebp + 0x44], ecx
mov ecx, dword [edi + 0x9c]
mov dword [ebp + 0x50], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x40], ecx
lea ecx, [ebp - 0xf0]
mov dword [ebp + 0x30], eax
call fcn.00513aad
mov byte [ebp - 0x7c], bl
jmp 0x5161ba
lea ecx, [ebp + 0x10]
call fcn.00403988
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp + 0x10]
call fcn.00513b6b
mov edx, dword [edi + 0x34]
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x6c], esi
test edx, edx
je 0x516187
test esi, 0xfff
jne 0x516187
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x78]
push ecx
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x5c]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x10]
mov dword [ebp + 0x60], eax
test eax, eax
jne 0x516211
mov ecx, edi
call fcn.00516f6b
mov eax, dword [ebp + 0x34]
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 5
cmp dword [eax], 0x2014b50
jne 0x51624c
call fcn.0050f0ec
lea ecx, [ebp - 0xf0]
call fcn.00513aad
mov byte [ebp - 0x7c], bl
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.005155a8
mov dword [ebp + 0x24], eax
test eax, eax
je 0x516128
lea ecx, [ebp - 0xf0]
call fcn.0050f0ec
test esi, esi
je 0x516209
mov eax, dword [ebp + 0x10]
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x516205
mov ecx, edi
call fcn.0050f0ec
push 0x78
push edi
call fcn.0056646a
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
test esi, esi
jne 0x5161e9
mov ebx, dword [ebp + 0x24]
jmp 0x516ad7
lea ecx, [ebp - 0xf0]
call fcn.0050f0ec
test esi, esi
je 0x516ad4
mov eax, dword [ebp + 0x10]
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x516243
mov ecx, edi
call fcn.0050f0ec
push 0x78
push edi
call fcn.0056646a
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
test esi, esi
jne 0x516227
jmp 0x516ad4
call fcn.0050f0ec
mov eax, dword [edi + 0x18]
mov ecx, esi
sub eax, dword [ebp + 0x40]
mov edx, ecx
mov dword [ebp + 0x3c], eax
mov eax, dword [edi + 0x1c]
sbb eax, dword [ebp + 0x30]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x20]
sub eax, dword [edi + 0x38]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x44]
sbb eax, dword [edi + 0x3c]
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x64], edx
test edx, edx
je 0x5162c1
mov eax, dword [ebp + 0x10]
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 0x5162c1
mov eax, dword [ebp + 0x30]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp + 0x20], eax
push 0x30
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi + 8]
xor ecx, ecx
add esp, 0xc
mov byte [ebp - 0x54], bl
sub eax, dword [edi + 0xc]
xorps xmm0, xmm0
movlpd qword [ebp + 0x2c], 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 + 0x24], eax
adc ecx, 0xffffffff
or dword [ebp + 0x60], 0xffffffff
cmp dword [edi + 0x24], 0x6064b50
mov dword [ebp + 0x34], ecx
jne 0x51646d
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.00516f90
mov dword [ebp + 0x30], edx
mov ecx, eax
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x4c], eax
cmp edx, ebx
ja 0x51633f
cmp ecx, 0x2c
jb 0x516433
cmp edx, 0x40000000
ja 0x516436
jb 0x516355
cmp ecx, ebx
jae 0x516436
push 0x2c
lea eax, [ebp - 0x11c]
mov ecx, edi
push eax
call fcn.00517728
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x54]
call fcn.00515342
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x30]
push dword [eax + 4]
mov eax, dword [ebp + 0x40]
add eax, 0xffffffd4
adc ecx, 0xffffffff
push ecx
push eax
mov ecx, edi
call fcn.00517820
mov dword [ebp + 0x40], eax
test eax, eax
je 0x5163ca
mov ebx, dword [ebp + 0x64]
test ebx, ebx
je 0x5163c3
mov eax, dword [ebp + 0x10]
dec ebx
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x5163bc
mov ecx, esi
call fcn.0050f0ec
push 0x78
push esi
call fcn.0056646a
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
test ebx, ebx
jne 0x5163a0
mov eax, dword [ebp + 0x40]
mov ebx, eax
jmp 0x516ad7
mov ecx, edi
call fcn.00516f6b
cmp dword [edi + 0x24], 0x7064b50
je 0x516411
mov esi, dword [ebp + 0x64]
mov byte [edi + 0x7c], 1
test esi, esi
je 0x516ad7
mov eax, dword [ebp + 0x10]
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x516408
mov ecx, edi
call fcn.0050f0ec
push 0x78
push edi
call fcn.0056646a
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
test esi, esi
jne 0x5163ec
jmp 0x516ad7
push 0x10
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.00517728
mov eax, dword [ebp - 0x6c]
mov ecx, edi
mov dword [ebp + 0x30], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp + 0x40], eax
call fcn.00516f6b
jmp 0x516479
mov eax, dword [ebp + 0x4c]
mov byte [edi + 0x7c], 1
test eax, eax
je 0x516ad7
mov edi, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x4c], eax
mov esi, dword [edi + eax*4]
test esi, esi
je 0x516464
mov ecx, esi
call fcn.0050f0ec
push 0x78
push esi
call fcn.0056646a
mov eax, dword [ebp + 0x4c]
pop ecx
pop ecx
test eax, eax
jne 0x516445
jmp 0x516ad7
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x30], eax
cmp dword [edi + 0x24], 0x6054b50
je 0x5164b6
mov byte [edi + 0x7c], 1
test esi, esi
je 0x516ad7
mov eax, dword [ebp + 0x10]
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x5164ad
mov ecx, edi
call fcn.0050f0ec
push 0x78
push edi
call fcn.0056646a
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
test esi, esi
jne 0x516491
jmp 0x516ad7
push 0x12
lea eax, [ebp - 0x70]
mov byte [edi + 0x22], bl
push eax
mov ecx, edi
call fcn.00517728
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x24]
call fcn.005150ba
mov dl, byte [ebp + 0x73]
mov ecx, 0xffff
mov ax, word [ebp - 0x24]
mov dword [ebp + 0x64], ecx
test dl, dl
je 0x5164ea
cmp ax, cx
je 0x5164f4
movzx eax, ax
mov dword [ebp - 0x4c], eax
test dl, dl
je 0x516502
mov ax, word [ebp - 0x22]
cmp ax, cx
jne 0x516506
mov ecx, dword [ebp - 0x48]
jmp 0x516510
mov ax, word [ebp - 0x22]
movzx ecx, ax
mov dword [ebp - 0x48], ecx
test dl, dl
je 0x51651c
mov ax, word [ebp - 0x20]
cmp ax, word [ebp + 0x64]
je 0x516531
jmp 0x516520
mov ax, word [ebp - 0x20]
movzx eax, ax
cdq
mov dword [ebp - 0x40], edx
mov dl, byte [ebp + 0x73]
mov dword [ebp - 0x44], eax
test dl, dl
je 0x51653d
mov ax, word [ebp - 0x1e]
cmp ax, word [ebp + 0x64]
jne 0x516541
jmp 0x516552
mov ax, word [ebp - 0x1e]
movzx eax, ax
cdq
mov dword [ebp - 0x38], edx
mov dl, byte [ebp + 0x73]
mov dword [ebp - 0x3c], eax
test dl, dl
je 0x51655c
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
jne 0x51655f
jmp 0x516569
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
test dl, dl
je 0x516573
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x516576
jmp 0x51657c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov esi, dword [ebp + 0x3c]
xor edx, edx
inc edx
cmp dword [ebp - 0x34], 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 0x5165c5
mov edi, dword [ebp + 0x48]
cmp dword [ebp - 0x3c], edi
mov edi, dword [ebp + 0x54]
jne 0x5165c0
cmp dword [ebp - 0x38], ebx
jne 0x5165c0
mov eax, dword [ebp + 0x3c]
cmp dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x64]
jne 0x5165c0
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x30], esi
mov esi, dword [ebp + 0x6c]
je 0x5165c5
mov al, bl
mov dword [ebp + 0x64], eax
cmp byte [edi + 0x87], 0
je 0x5165e5
cmp dword [ebp + 0x50], ecx
mov esi, dword [ebp + 0x6c]
mov cl, byte [ebp + 0x72]
je 0x5166b0
mov byte [edi + 0x7c], dl
jmp 0x5166b0
mov cl, byte [ebp + 0x72]
test cl, cl
je 0x5166b0
test al, al
je 0x5166b4
cmp byte [ebp + 0x73], 0
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x68], ecx
je 0x5167d7
mov esi, dword [ebp + 0x60]
cmp esi, dword [edi + 0xa8]
mov esi, dword [ebp + 0x6c]
jne 0x51666e
mov eax, dword [ebp + 0x24]
sub eax, dword [ebp + 0x30]
mov edi, dword [ebp + 0x34]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x34]
sbb eax, dword [ebp + 0x40]
mov dword [ebp + 0x60], eax
cmp dword [ebp + 0x60], edi
mov eax, dword [ebp + 0x4c]
mov edi, dword [ebp + 0x54]
jg 0x51666e
jl 0x516649
mov esi, dword [ebp + 0x24]
cmp dword [ebp + 0x50], esi
mov esi, dword [ebp + 0x6c]
ja 0x51666e
mov ecx, dword [ebp + 0x60]
cmp ecx, dword [edi + 0x4c]
jl 0x5167c5
jg 0x516663
mov eax, dword [ebp + 0x50]
cmp eax, dword [edi + 0x48]
jbe 0x5167c8
mov ecx, dword [ebp + 0x68]
mov al, bl
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x4c]
sub dword [ebp + 0x4c], eax
mov edi, dword [ebp + 0x54]
sbb dword [ebp + 0x68], ecx
mov ecx, dword [ebp + 0x4c]
mov eax, ecx
or eax, dword [ebp + 0x68]
je 0x5166aa
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x60], ebx
cmp dword [eax + 4], ebx
jbe 0x5166aa
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 0x516691
mov edi, dword [ebp + 0x54]
xor ebx, ebx
mov esi, dword [ebp + 0x6c]
mov cl, byte [ebp + 0x72]
mov eax, dword [ebp + 0x64]
test al, al
jne 0x5166b7
mov byte [edi + 0x7c], dl
cmp byte [edi + 0x87], 0
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x8c], eax
jne 0x51672f
test eax, eax
jne 0x5166f7
cmp byte [edi + 0xa6], al
je 0x5166f7
cmp byte [edi + 0xa2], al
je 0x5166f7
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 0x516729
cmp dword [edi + 0x8c], ebx
je 0x516729
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x60], ebx
cmp dword [eax + 4], ebx
jbe 0x516729
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 0x516710
mov esi, dword [ebp + 0x6c]
xor ebx, ebx
mov byte [edi + 0x88], dl
cmp byte [ebp + 0x73], 0
je 0x516861
cmp dword [ebp - 0x4c], 0
jne 0x516755
mov ecx, dword [ebp + 0x30]
add ecx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
adc eax, dword [ebp + 0x40]
cmp dword [ebp + 0x24], ecx
jne 0x516792
cmp dword [ebp + 0x34], eax
jne 0x516792
mov eax, dword [ebp + 0x48]
cmp dword [ebp - 0x3c], eax
jne 0x516792
cmp dword [ebp - 0x38], ebx
jne 0x516792
mov eax, dword [ebp + 0x3c]
cmp dword [ebp - 0x34], eax
jne 0x516792
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x30], eax
jne 0x516792
mov eax, dword [ebp + 0x38]
cmp dword [ebp - 0x2c], eax
jne 0x516786
mov eax, dword [ebp + 0x58]
cmp dword [ebp - 0x28], eax
je 0x516861
mov eax, dword [ebp + 0x7c]
cmp dword [eax + 4], ebx
je 0x516861
mov byte [edi + 0x7c], dl
test esi, esi
je 0x516ad7
mov eax, dword [ebp + 0x10]
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x5167bc
mov ecx, edi
call fcn.0050f0ec
push 0x78
push edi
call fcn.0056646a
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
test esi, esi
jne 0x5167a0
jmp 0x516ad7
mov eax, dword [ebp + 0x50]
mov esi, dword [ebp + 0x20]
sub esi, eax
mov dword [ebp + 0x38], esi
mov esi, dword [ebp + 0x44]
sbb esi, ecx
jmp 0x516850
cmp dword [ebp + 0x48], 0
je 0x51666e
mov esi, dword [ebp + 0x50]
cmp esi, dword [edi + 0xa8]
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x68]
mov esi, dword [ebp + 0x6c]
jne 0x51666e
mov eax, dword [ebp + 0x20]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x44]
sbb ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp + 0x44]
jg 0x516663
jl 0x516819
cmp eax, dword [ebp + 0x20]
ja 0x516663
cmp ecx, dword [edi + 0x4c]
jl 0x516847
jg 0x516825
cmp eax, dword [edi + 0x48]
jbe 0x516847
sub eax, dword [ebp + 0x4c]
mov edi, dword [ebp + 0x54]
sbb ecx, dword [ebp + 0x68]
mov dword [ebp + 0x60], ecx
mov ecx, dword [ebp + 0x68]
test eax, eax
jne 0x516666
mov byte [edi + 0x83], dl
jmp 0x51666b
mov esi, dword [ebp - 0x2c]
mov dword [ebp + 0x38], esi
mov esi, dword [ebp - 0x28]
mov dword [ebp + 0x58], esi
mov esi, dword [ebp + 0x6c]
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x38], eax
jmp 0x51666e
cmp byte [ebp + 0x64], 0
je 0x5169ab
test esi, esi
je 0x5169ab
mov eax, ebx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x30], ebx
mov ecx, ebx
mov byte [ebp - 4], 8
mov dword [ebp + 0x58], ebx
mov byte [edi + 0x81], dl
mov dword [ebp + 0x50], ecx
mov edx, dword [edi + 0x34]
test edx, edx
je 0x5168ca
test ecx, 0x3fff
jne 0x5168ca
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 8], ebx
mov eax, dword [eax + 4]
add eax, dword [ebp + 0x2c]
mov dword [ebp + 4], eax
lea eax, [edi + 0x18]
mov ecx, dword [edx]
push eax
lea eax, [ebp + 4]
push eax
push edx
call dword [ecx + 0x10]
mov dword [ebp + 0x60], eax
test eax, eax
jne 0x516aa8
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x58]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x20], ecx
cmp edx, 0xffffffff
je 0x516938
cmp edx, dword [eax + 4]
jae 0x516938
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 0x516931
mov eax, dword [ebp + 0x60]
mov edx, dword [ecx + 0x48]
cmp dword [eax + 0x48], edx
mov edx, dword [ebp + 0x58]
jne 0x51690c
mov edi, dword [ecx + 0x4c]
cmp dword [eax + 0x4c], edi
mov edi, dword [ebp + 0x54]
je 0x516925
cmp byte [edi + 0x83], 0
je 0x516931
mov edi, dword [ecx + 0x48]
cmp dword [eax + 0x48], edi
mov edi, dword [ebp + 0x54]
jne 0x516931
cmp ebx, dword [ecx + 0x4c]
jne 0x516931
mov dword [ebp + 0x60], edx
inc edx
mov dword [ebp + 0x58], edx
jmp 0x5169c6
or dword [ebp + 0x58], 0xffffffff
mov eax, dword [ebp + 0x7c]
mov edx, ecx
mov ecx, eax
call fcn.005143a1
mov dword [ebp + 0x60], eax
cmp eax, 0xffffffff
jne 0x5169c3
push dword [ebp + 0x50]
lea ecx, [ebp + 0x28]
call fcn.00406bdd
mov byte [edi + 0x7c], 1
mov ecx, dword [ebp + 0x50]
inc ecx
mov dword [ebp + 0x50], ecx
cmp ecx, esi
jb 0x516890
cmp dword [ebp + 0x2c], 0
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x60], ebx
jbe 0x51699d
mov edi, eax
mov eax, dword [edi + ebx*4]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx + eax*4]
mov ecx, dword [ebp + 0x7c]
call fcn.00403988
mov ecx, dword [ebp + 0x7c]
push esi
call fcn.00513b6b
inc ebx
cmp ebx, dword [ebp + 0x2c]
jb 0x516975
mov edi, dword [ebp + 0x54]
xor ebx, ebx
mov eax, dword [ebp + 0x28]
push eax
mov byte [ebp - 4], 5
call fcn.0056651e
xor edx, edx
pop ecx
inc edx
mov si, word [ebp - 0x1e]
cmp si, word [ebp - 0x20]
jae 0x516ae7
lea eax, [edi + 0x7c]
mov byte [eax], dl
jmp 0x516aed
mov ecx, dword [ebp + 0x20]
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 + 0x44], eax
lea ecx, [eax + 0x24]
call fcn.0040d5b4
test al, al
jne 0x516954
mov edx, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x20]
mov eax, dword [edx + 0x10]
cmp eax, dword [ecx + 0x10]
jne 0x516954
mov eax, dword [edx + 0x14]
cmp eax, dword [ecx + 0x14]
jne 0x516954
mov eax, dword [edx + 8]
cmp eax, dword [ecx + 8]
jne 0x516954
mov eax, dword [edx + 0xc]
cmp eax, dword [ecx + 0xc]
jne 0x516954
mov edx, ecx
mov ecx, dword [ebp + 0x44]
call fcn.00514826
test al, al
je 0x516954
mov edx, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x20]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x1c]
jne 0x516954
mov ax, word [ecx + 0x40]
mov word [edx + 0x40], ax
lea eax, [ecx + 0x50]
push eax
lea ecx, [edx + 0x50]
call fcn.00513b3e
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x44]
mov ax, word [ecx + 0x42]
mov word [edx + 0x42], ax
lea edi, [edx + 0x60]
mov eax, dword [ecx + 0x44]
mov dword [edx + 0x44], eax
lea eax, [ecx + 0x60]
mov dword [ebp + 0x60], edi
cmp eax, edi
mov edi, dword [ebp + 0x54]
je 0x516a8c
push dword [eax + 4]
mov ecx, dword [ebp + 0x60]
push dword [eax]
call fcn.0040c141
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x44]
mov al, byte [ecx + 0x69]
mov byte [edx + 0x69], al
mov eax, 0x800
test word [ecx], ax
je 0x516958
or word [edx], ax
jmp 0x516958
push dword [ebp + 0x28]
call fcn.0056651e
mov eax, dword [ebp + 0x10]
pop ecx
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x516ad0
mov ecx, edi
call fcn.0050f0ec
push 0x78
push edi
call fcn.0056646a
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
test esi, esi
jne 0x516ab4
mov ebx, dword [ebp + 0x60]
push dword [ebp + 0x10]
call fcn.0056651e
pop ecx
mov eax, ebx
jmp 0x516bad
mov eax, dword [ebp]
add eax, 0x7c
cmp word [ebp - 0x24], 0
mov ecx, eax
jne 0x516b04
cmp si, word [ebp - 0x20]
je 0x516b04
mov ecx, dword [ebp]
mov byte [eax], dl
add ecx, 0x7c
cmp byte [ebp + 0x73], 0
mov esi, dword [ebp + 0x7c]
mov esi, dword [esi + 4]
je 0x516b37
cmp dword [ebp - 0x3c], esi
jne 0x516b2f
cmp dword [ebp - 0x38], ebx
jne 0x516b2f
movzx eax, word [ebp - 0x1e]
cmp eax, esi
je 0x516b33
mov esi, 0xffff
mov eax, ecx
cmp word [ebp - 0x1e], si
je 0x516b33
mov ecx, eax
mov byte [ecx], dl
mov esi, ecx
jmp 0x516b6c
mov edi, dword [ebp + 0x7c]
mov esi, ecx
movzx eax, word [ebp - 0x1e]
cmp eax, dword [edi + 4]
mov edi, dword [ebp + 0x54]
jbe 0x516b4f
mov esi, edi
mov byte [ecx], dl
add esi, 0x7c
mov eax, dword [ebp + 0x48]
cmp dword [ebp - 0x3c], eax
jne 0x516b5c
cmp dword [ebp - 0x38], ebx
je 0x516b6c
cmp word [ebp - 0x3c], ax
je 0x516b66
mov byte [ecx], dl
jmp 0x516b6c
mov byte [edi + 0x84], dl
movzx eax, word [ebp - 0x14]
mov ecx, edi
push eax
lea eax, [edi + 0x70]
push eax
call fcn.0051543b
mov eax, dword [ebp + 0x48]
mov byte [edi + 0x20], bl
cmp word [ebp - 0x3c], ax
jne 0x516ba0
mov eax, dword [ebp + 0x3c]
cmp dword [ebp - 0x34], eax
jne 0x516ba0
mov eax, dword [ebp + 0x38]
cmp dword [ebp - 0x2c], eax
je 0x516ba3
mov eax, dword [ebp + 0x7c]
cmp dword [eax + 4], ebx
je 0x516ba3
mov byte [esi], 1
lea ecx, [ebp + 0x10]
call fcn.0050f023
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