Function at 0x520e80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
push 0x40000
mov esi, ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
call fcn.00538da8
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x5215ce
cmp dword [esi + 0x6486a8], 2
jne 0x520f09
cmp dword [esp + 0x40], 0xfffffffe
jne 0x520f09
cmp dword [esp + 0x44], 0xffffffff
jne 0x520f09
mov eax, dword [esi + 0x6496f8]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x55670c]
lea ecx, [esi + 0x6496f8]
call edi
mov dword [esp + 0x24], eax
xor ecx, ecx
mov dword [esp + 0x28], edx
mov byte [esp + ecx + 0x30], 0
inc ecx
cmp ecx, 4
jb 0x520ef6
mov dword [esp + 0x20], 1
mov al, byte [esp + 0x33]
xor edi, edi
mov byte [esp + 0x12], al
xor ebp, ebp
mov al, byte [esp + 0x32]
mov byte [esp + 0x11], al
mov al, byte [esp + 0x31]
mov dword [esi + 0x64b77c], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebp
mov byte [esp + 0x10], al
jmp 0x520f40
cmp dword [esp + 0x20], 0
je 0x5216b8
jmp 0x520f50
call fcn.004c08b0
cmp byte [0x5d2824], 0
je 0x520f6b
call fcn.004c08c0
test al, al
jne 0x52177c
cmp dword [esp + 0x20], 0
jne 0x520fa3
mov ecx, dword [esp + 0x40]
mov eax, ecx
and eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x520fa3
mov eax, dword [esp + 0x44]
mov edx, ecx
sub edx, edi
sbb eax, ebp
test eax, eax
ja 0x520fa3
jb 0x520f99
cmp edx, 0x40000
jae 0x520fa3
mov eax, ecx
sub eax, edi
mov dword [esp + 0x30], eax
jmp 0x520fab
mov dword [esp + 0x30], 0x40000
mov eax, dword [esi + 0x6496f8]
lea ebp, [esi + 0x6496f8]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x55670c]
mov ecx, ebp
call edi
mov ecx, dword [ebp]
push dword [esp + 0x30]
mov dword [esp + 0x38], eax
push ebx
mov edi, dword [ecx + 0xc]
mov ecx, edi
mov dword [esp + 0x34], edx
call dword [0x55670c]
mov ecx, ebp
call edi
mov ecx, eax
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x52178f
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
test ebx, ebx
je 0x52149d
cmp byte [edi], 0x50
mov dword [esi + 0x64b780], 0
mov dword [esi + 0x64b788], 0
mov dword [esi + 0x64b78c], 0
mov dword [esi + 0x64b790], 0
mov dword [esi + 0x64b794], 0
jne 0x52140e
cmp byte [edi + 1], 0x4b
jne 0x52140e
cmp byte [edi + 2], 7
jne 0x52140e
cmp byte [edi + 3], 8
jne 0x52140e
cmp dword [esi + 0x64b7a4], 0
mov dword [esi + 0x64b77c], 0
je 0x5212aa
cmp ecx, 0x18
jb 0x52149d
movzx ecx, byte [edi + 7]
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
mov ebp, dword [esp + 0x14]
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xf]
mov dword [esi + 0x64b780], ecx
cdq
mov ebx, eax
mov ecx, edx
movzx eax, byte [edi + 0xe]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 0xd]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 0xc]
shld ecx, ebx, 8
cdq
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 0xb]
cdq
mov ecx, eax
mov dword [esp + 0x30], ebx
movzx eax, byte [ebp + 0xa]
mov edi, edx
shld edi, ecx, 8
cdq
xor ebx, ebx
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [ebp + 9]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
shld edi, ecx, 8
shl ecx, 8
or ebx, ecx
mov ecx, dword [esp + 0x30]
or ecx, edi
mov edi, ebp
movzx eax, byte [edi + 8]
cdq
or ebx, eax
or ecx, edx
movzx eax, byte [edi + 0x17]
cdq
mov dword [esp + 0x30], ecx
mov ebp, eax
movzx eax, byte [edi + 0x16]
mov dword [esi + 0x64b78c], ecx
mov ecx, edx
shld ecx, ebp, 8
cdq
shl ebp, 8
or ecx, edx
or ebp, eax
mov dword [esp + 0x38], ebx
movzx eax, byte [edi + 0x15]
shld ecx, ebp, 8
cdq
shl ebp, 8
or ebp, eax
mov dword [esi + 0x64b788], ebx
or ecx, edx
movzx eax, byte [edi + 0x14]
xor ebx, ebx
shld ecx, ebp, 8
cdq
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 0x13]
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x14]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 0x12]
cdq
or ecx, eax
or edi, edx
mov eax, dword [esp + 0x14]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 0x11]
cdq
or ecx, eax
or edi, edx
mov eax, dword [esp + 0x14]
shld edi, ecx, 8
shl ecx, 8
or ebp, edi
movzx eax, byte [eax + 0x10]
or ebx, ecx
mov ecx, dword [esp + 0x2c]
mov edi, dword [esi + 0x6496f8]
cdq
or ebx, eax
or ebp, edx
mov dword [esi + 0x64b790], ebx
mov edx, ecx
mov ebx, dword [esp + 0x34]
mov eax, ebx
sub eax, dword [esp + 0x24]
mov dword [esi + 0x64b794], ebp
lea ebp, [esi + 0x6496f8]
sbb edx, dword [esp + 0x28]
cmp eax, dword [esp + 0x38]
jne 0x521258
cmp edx, dword [esp + 0x30]
jne 0x521258
mov edi, dword [edi + 0x14]
mov ecx, edi
mov dword [esi + 0x64b77c], 1
mov dword [esp + 0x30], 0x18
call dword [0x55670c]
mov ecx, ebp
call edi
mov edi, dword [ebp]
add ebx, 0x18
mov edx, dword [esp + 0x2c]
push 0
adc edx, 0
mov edi, dword [edi + 0x10]
mov ecx, edi
push edx
push ebx
call dword [0x55670c]
mov ecx, ebp
call edi
mov eax, dword [ebp]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x55670c]
mov ecx, ebp
call edi
mov dword [esp + 0x24], eax
mov ecx, 0x18
mov dword [esp + 0x28], edx
jmp 0x521495
add ebx, 4
push 0
adc ecx, 0
push ecx
push ebx
mov edi, dword [edi + 0x10]
mov ecx, edi
call dword [0x55670c]
mov ecx, ebp
call edi
mov edi, dword [esp + 0x14]
mov ecx, esi
push 0
push 4
push 1
push edi
call fcn.005217b0
cmp eax, 4
jne 0x5216f9
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
add edi, eax
mov ebx, dword [esp + 0x14]
adc ebp, 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebp
jmp 0x520f50
cmp ecx, 0x10
jb 0x52149d
movzx ecx, byte [edi + 7]
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xb]
cdq
mov ebx, eax
mov dword [esi + 0x64b780], ecx
movzx eax, byte [edi + 0xa]
mov ecx, edx
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 9]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 8]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
mov dword [esp + 0x38], ecx
movzx eax, byte [edi + 0xf]
cdq
mov dword [esi + 0x64b78c], ecx
mov edi, edx
mov ecx, eax
mov dword [esi + 0x64b788], ebx
mov eax, dword [esp + 0x14]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 0xe]
cdq
or ecx, eax
or edi, edx
mov eax, dword [esp + 0x14]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 0xd]
cdq
or ecx, eax
or edi, edx
mov eax, dword [esp + 0x14]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 0xc]
cdq
or ecx, eax
or edi, edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x64b790], ecx
mov ecx, dword [esp + 0x34]
mov eax, ecx
sub eax, dword [esp + 0x24]
mov dword [esi + 0x64b794], edi
mov edi, edx
sbb edi, dword [esp + 0x28]
cmp eax, ebx
jne 0x5213fc
cmp edi, dword [esp + 0x38]
jne 0x5213fc
mov edi, dword [ebp]
mov dword [esi + 0x64b77c], 1
mov edi, dword [edi + 0x14]
mov ecx, edi
call dword [0x55670c]
mov ecx, ebp
call edi
mov eax, dword [esp + 0x34]
mov edi, dword [ebp]
add eax, 0x10
mov edx, dword [esp + 0x2c]
push 0
adc edx, 0
mov dword [esp + 0x34], 0x10
mov edi, dword [edi + 0x10]
mov ecx, edi
push edx
push eax
call dword [0x55670c]
mov ecx, ebp
call edi
mov eax, dword [ebp]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x55670c]
mov ecx, ebp
call edi
mov dword [esp + 0x24], eax
mov ecx, 0x10
mov dword [esp + 0x28], edx
jmp 0x521495
mov edi, dword [ebp]
add ecx, 4
push 0
adc edx, 0
push edx
push ecx
jmp 0x521262
xor ebx, ebx
test ecx, ecx
je 0x521499
mov dl, byte [esp + 0x12]
mov ah, byte [esp + 0x11]
mov al, byte [esp + 0x10]
mov dh, ah
mov byte [esp + 0x10], ah
mov ah, dl
mov byte [esp + 0x13], dl
mov dl, byte [ebx + edi]
mov byte [esp + 0x11], ah
mov byte [esp + 0x12], dl
cmp al, 0x50
jne 0x52144e
cmp dh, 0x4b
jne 0x52144e
cmp ah, 7
jne 0x52144e
cmp dl, 8
je 0x521455
inc ebx
cmp ebx, ecx
jb 0x521420
jmp 0x521499
mov edi, dword [ebp]
lea ecx, [ebx - 3]
xor eax, eax
add ecx, dword [esi + 0x64b838]
push 0
adc eax, dword [esi + 0x64b83c]
mov edi, dword [edi + 0x10]
push eax
push ecx
mov ecx, edi
call dword [0x55670c]
mov ecx, ebp
call edi
mov eax, dword [ebp]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x55670c]
mov ecx, ebp
call edi
lea ecx, [ebx - 3]
mov dword [esp + 0x30], ecx
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
cmp dword [esi + 0x64b77c], 0
jne 0x5214d6
push 0
push ecx
push 1
push edi
mov ecx, esi
call fcn.005217b0
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jne 0x5216f9
mov edi, dword [esp + 0x1c]
add edi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], edi
adc ecx, 0
mov dword [esp + 0x18], ecx
jmp 0x5214de
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x64b77c], 0
jne 0x52178b
test ebx, ebx
jne 0x5216ec
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
and eax, edx
cmp eax, 0xffffffff
je 0x5216b4
cmp ecx, edx
ja 0x5216b4
jb 0x52151a
cmp edi, dword [esp + 0x40]
jae 0x5216b4
mov eax, dword [ebp]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x55670c]
mov ecx, ebp
call edi
mov ecx, ebp
mov edi, eax
mov ebx, edx
call fcn.0048f0c0
cmp edi, eax
jne 0x5216b0
cmp ebx, edx
jne 0x5216b0
mov edx, dword [esi + 0x64b7e0]
mov eax, dword [esi + 0x64b7dc]
inc edx
mov dword [esi + 0x64b7e0], edx
cmp edx, eax
jae 0x52178b
mov ecx, dword [esi + 0x64b7d0]
dec eax
cmp edx, eax
jne 0x5215dd
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x521570
sub ecx, edx
sar ecx, 1
lea ebx, [ecx*2 + 0xa]
push ebx
call fcn.00538da8
mov edi, eax
add esp, 4
test edi, edi
je 0x5215ce
push ebx
push dword [esi + 0x64b7d0]
push edi
call fcn.004bd090
push ebx
push 0x557930
push edi
call fcn.004a2e40
push dword [esi + 0x64b7d0]
call fcn.00537b6f
push edi
mov dword [esi + 0x64b7d0], edi
call fcn.005384bb
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x5215e8
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x2c
ret 8
push edx
push ecx
mov ecx, esi
call fcn.00521e40
mov ebx, eax
mov eax, dword [ebp]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x55670c]
mov ecx, ebp
call edi
mov eax, dword [ebp]
push 0
push ebx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x55670c]
mov ecx, ebp
call edi
test al, al
jne 0x521691
cmp dword [esi + 0x6486a8], 1
jne 0x521629
cmp dword [esi + 0x64b778], 0
jne 0x521728
push dword [esi + 0x64b7e0]
mov ecx, esi
call fcn.005208c0
cmp eax, 9
je 0x52176a
cmp eax, 2
je 0x521749
cmp dword [esi + 0x6486a8], 2
jne 0x521660
cmp dword [esi + 0x64b778], 0
je 0x521660
inc dword [esi + 0x64b7e0]
push dword [esi + 0x64b7d0]
call fcn.005384bb
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5215ce
mov eax, dword [ebp]
push 0
push ebx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x55670c]
mov ecx, ebp
call edi
test al, al
je 0x521613
cmp dword [esi + 0x6486a8], 2
jne 0x5216a7
cmp dword [esi + 0x64b778], 0
jne 0x521728
push ebx
call fcn.00537b6f
add esp, 4
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
and eax, ecx
mov ebx, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x520f50
cmp ebp, ecx
ja 0x52178f
jb 0x520f50
cmp edi, dword [esp + 0x40]
jae 0x52178f
jmp 0x520f50
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
jmp 0x520f40
push edi
call fcn.00537b6f
mov eax, dword [esi + 0x64b7b0]
add esp, 4
test eax, eax
je 0x521719
push eax
push 0
mov ecx, 0x5d281c
call fcn.00488150
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x2c
ret 8
push ebx
call fcn.00537b6f
push dword [esp + 0x18]
call fcn.00537b6f
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
push ebx
call fcn.00537b6f
push dword [esp + 0x18]
call fcn.00537b6f
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
push ebx
call fcn.00537b6f
push dword [esp + 0x18]
call fcn.00537b6f
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
add esp, 0x2c
ret 8
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00537b6f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8