Function at 0xa5fc10
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, dword [ecx + 0x10]
mov dword [ebp - 0xc], ecx
test edi, edi
je 0xa604ca
mov ax, word [ecx + 2]
add edi, 0xa
mov word [ebp - 0x44], ax
mov al, byte [ecx + 4]
mov byte [ebp - 0x42], al
xor eax, eax
xor dl, dl
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, edi
mov dword [ebp - 0x40], 0
mov byte [ebp - 1], dl
mov dword [ebp - 0x28], edi
cmp byte [ebp - 0x42], 1
mov edx, dword [ebp + 0x10]
mov ebx, dword [ecx + 0x14]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edx
jne 0xa5fca1
lea esi, [eax + 2]
cmp esi, ebx
ja 0xa6021a
mov dword [ebp - 0x38], eax
test eax, eax
je 0xa5fc86
mov ax, word [eax]
movzx edx, ax
mov dword [ebp - 0x40], edx
jmp 0xa5fcca
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x16
call fcn.00ab4b82
xor eax, eax
movzx edx, ax
mov dword [ebp - 0x40], edx
jmp 0xa5fcca
cmp byte [ebp - 0x42], 2
mov esi, eax
jne 0xa5fcca
lea esi, [eax + 4]
cmp esi, ebx
ja 0xa6021a
push 4
push eax
mov edx, 4
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x40]
call fcn.00a54e34
add esp, 8
mov ax, word [ebp - 0x44]
mov word [ebp - 0x3c], ax
test ax, ax
jne 0xa5fcff
lea eax, [esi + 2]
mov dword [ebp - 0x24], eax
cmp eax, ebx
ja 0xa60217
push 2
push esi
mov edx, 2
lea ecx, [ebp - 0x3c]
call fcn.00a54e34
mov esi, dword [ebp - 0x24]
add esp, 8
mov ax, word [ebp - 0x3c]
movzx ecx, ax
lea edx, [ecx + esi]
mov dword [ebp - 0x14], edx
cmp edx, ebx
ja 0xa60217
mov eax, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 0x34], esi
cmp eax, ecx
jne 0xa5fd7a
mov ecx, dword [ebp + 8]
mov edx, eax
sub edx, 4
jb 0xa5fd37
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0xa5fd3c
add ecx, 4
add esi, 4
sub edx, 4
jae 0xa5fd26
cmp edx, 0xfffffffc
je 0xa5fd73
mov al, byte [ecx]
cmp al, byte [esi]
jne 0xa5fd69
cmp edx, 0xfffffffd
je 0xa5fd73
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0xa5fd69
cmp edx, 0xfffffffe
je 0xa5fd73
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0xa5fd69
cmp edx, 0xffffffff
je 0xa5fd73
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0xa5fd73
mov edx, dword [ebp - 0x14]
sbb eax, eax
or eax, 1
jmp 0xa5fd7f
mov edx, dword [ebp - 0x14]
xor eax, eax
jmp 0xa5fd7f
sub eax, ecx
mov dword [ebp - 0x14], edx
test eax, eax
js 0xa6020c
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + 0xc]
je 0xa5fe36
mov dword [ebp - 0x20], edi
test ebx, ebx
je 0xa5fdd1
mov eax, dword [ecx + 0x14]
xor edx, edx
sub eax, dword [ecx + 0x10]
div ebx
mov edx, dword [ebp - 0x40]
cmp edx, eax
jbe 0xa5fdbd
push eax
lea ecx, [ebp - 0x44]
call fcn.00a48b5e
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x40]
mov ebx, dword [ebx + 0xc]
mov ecx, dword [ebp - 0xc]
imul ebx, edx
add edi, ebx
mov edx, edi
mov dword [ebp - 0x28], edx
mov eax, edx
jmp 0xa5fc57
mov ax, word [ecx + 6]
xor esi, esi
mov ebx, dword [ebp - 0x40]
mov word [ebp - 0x6c], ax
mov al, byte [ecx + 8]
mov byte [ebp - 0x6a], al
xor eax, eax
mov dword [ebp - 0x68], 0
mov word [ebp - 0x64], ax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
test ebx, ebx
je 0xa5fe1e
jmp 0xa5fe00
push dword [ecx + 0x14]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00a5c1bd
test al, al
je 0xa5fe1b
mov ecx, dword [ebp - 0xc]
inc esi
cmp esi, ebx
jb 0xa5fe00
mov edi, dword [ebp - 0x20]
push esi
lea ecx, [ebp - 0x44]
call fcn.00a48b5e
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov dword [ebp - 0x28], edx
mov eax, edx
jmp 0xa5fc57
movzx eax, word [ecx + 6]
or esi, 0xffffffff
mov dword [ebp - 0x1c], eax
mov edi, edx
mov word [ebp - 0x58], ax
mov al, byte [ecx + 8]
mov byte [ebp - 1], al
mov byte [ebp - 0x56], al
xor eax, eax
mov dword [ebp - 0x54], 0
mov word [ebp - 0x50], ax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
test ebx, ebx
je 0xa6016a
mov eax, dword [ecx + 0x14]
xor edx, edx
sub eax, edi
div ebx
mov edx, eax
mov eax, dword [ebp - 0x1c]
movzx esi, ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], esi
cmp eax, edx
jbe 0xa5fea6
push edx
lea ecx, [ebp - 0x44]
call fcn.00a48b5e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x40]
movzx esi, word [ecx + 6]
mov dl, byte [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x10], esi
mov byte [ebp - 1], dl
jmp 0xa5fea9
mov dl, byte [ebp - 1]
mov edi, dword [ebp - 0x14]
imul ebx, eax
mov byte [ebp - 0x6a], dl
xor edx, edx
mov dword [ebp - 0x28], eax
mov word [ebp - 0x6c], si
mov dword [ebp - 0x68], 0
add ebx, edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x64], dx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
test eax, eax
je 0xa60052
mov ebx, eax
mov edi, edi
mov edx, dword [ecx + 0xc]
mov eax, ebx
shr eax, 1
imul edx, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x14]
mov cl, byte [ebp - 1]
mov dword [ebp - 0x18], eax
add edx, edi
mov dword [ebp - 0x24], edx
mov esi, edx
cmp cl, 1
jne 0xa5ff89
lea esi, [edx + 2]
cmp esi, eax
ja 0xa5ffc0
push 2
mov dword [ebp - 0x60], edx
lea ecx, [ebp - 8]
push edx
mov edx, 2
call fcn.00a54e34
movzx eax, word [ebp - 8]
add esp, 8
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
movzx edx, cx
mov dword [ebp - 0x14], edx
mov word [ebp - 0x64], dx
test cx, cx
jne 0xa5ff77
lea ecx, [esi + 2]
mov dword [ebp - 0x2c], ecx
cmp ecx, eax
ja 0xa5ffc3
push 2
push esi
mov edx, 2
lea ecx, [ebp - 0x64]
call fcn.00a54e34
mov al, byte [ebp - 0x6a]
add esp, 8
movzx edx, word [ebp - 0x64]
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 1], al
movzx eax, word [ebp - 0x6c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
movzx eax, dx
add eax, esi
cmp eax, dword [ebp - 0x18]
ja 0xa5ffc3
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x24], eax
jmp 0xa5ffc3
cmp cl, 2
jne 0xa5ff31
lea esi, [edx + 4]
cmp esi, eax
ja 0xa5ffc0
push 4
mov dword [ebp - 0x60], edx
lea ecx, [ebp - 0x68]
push edx
mov edx, 4
call fcn.00a54e34
mov al, byte [ebp - 0x6a]
add esp, 8
movzx ecx, word [ebp - 0x6c]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
jmp 0xa5ff34
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x14]
movzx ecx, dx
cmp eax, ecx
jne 0xa6002e
mov ecx, dword [ebp + 0x10]
mov esi, eax
mov edx, dword [ebp - 0x5c]
sub esi, 4
jb 0xa5fff1
lea ebx, [ebx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0xa5fff6
add ecx, 4
add edx, 4
sub esi, 4
jae 0xa5ffe0
cmp esi, 0xfffffffc
je 0xa6002a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0xa60023
cmp esi, 0xfffffffd
je 0xa6002a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0xa60023
cmp esi, 0xfffffffe
je 0xa6002a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0xa60023
cmp esi, 0xffffffff
je 0xa6002a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0xa6002a
sbb eax, eax
or eax, 1
jmp 0xa60030
xor eax, eax
jmp 0xa60030
sub eax, ecx
test eax, eax
jle 0xa60041
mov edi, dword [ebp - 0x24]
or eax, 0xffffffff
sub eax, dword [ebp - 0x28]
add ebx, eax
jmp 0xa60044
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
test ebx, ebx
jne 0xa5fee0
mov ebx, dword [ebp - 0x30]
cmp edi, ebx
mov ebx, dword [ebp - 0xc]
jae 0xa601fa
cmp byte [ebp - 0x56], 1
mov esi, edi
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x18], eax
jne 0xa60092
lea esi, [edi + 2]
cmp esi, eax
ja 0xa60101
push 2
push edi
mov edx, 2
mov dword [ebp - 0x4c], edi
lea ecx, [ebp - 8]
call fcn.00a54e34
movzx eax, word [ebp - 8]
mov dword [ebp - 0x54], eax
jmp 0xa600b9
cmp byte [ebp - 0x56], 2
jne 0xa600bf
lea esi, [edi + 4]
cmp esi, eax
ja 0xa60101
push 4
push edi
mov edx, 4
mov dword [ebp - 0x4c], edi
lea ecx, [ebp - 0x54]
call fcn.00a54e34
movzx eax, word [ebp - 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dx, cx
mov word [ebp - 0x50], dx
test cx, cx
jne 0xa600f2
lea ecx, [esi + 2]
mov dword [ebp - 0x30], ecx
cmp ecx, eax
ja 0xa60103
push 2
push esi
mov edx, 2
lea ecx, [ebp - 0x50]
call fcn.00a54e34
mov esi, dword [ebp - 0x30]
add esp, 8
mov dx, word [ebp - 0x50]
movzx eax, dx
add eax, esi
cmp eax, dword [ebp - 0x18]
ja 0xa60103
mov dword [ebp - 0x48], esi
jmp 0xa60103
xor edx, edx
mov esi, dword [ebp + 0x14]
movzx eax, dx
cmp esi, eax
jne 0xa60166
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x48]
sub esi, 4
jb 0xa60129
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0xa6012e
add ecx, 4
add edx, 4
sub esi, 4
jae 0xa60118
cmp esi, 0xfffffffc
je 0xa60162
mov al, byte [ecx]
cmp al, byte [edx]
jne 0xa6015b
cmp esi, 0xfffffffd
je 0xa60162
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0xa6015b
cmp esi, 0xfffffffe
je 0xa60162
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0xa6015b
cmp esi, 0xffffffff
je 0xa60162
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0xa60162
sbb esi, esi
or esi, 1
jmp 0xa601bb
xor esi, esi
jmp 0xa601bb
sub esi, eax
jmp 0xa601bb
xor ebx, ebx
cmp dword [ebp - 0x40], eax
jbe 0xa601f8
push dword [ecx + 0x14]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], edi
push eax
lea ecx, [ebp - 0x58]
call fcn.00a5c1bd
test al, al
je 0xa601af
push dword [ebp + 0x14]
lea ecx, [ebp - 0x58]
push dword [ebp + 0x10]
call fcn.00a4a3db
mov esi, eax
test esi, esi
jle 0xa601b8
mov edi, dword [ebp - 0x28]
inc ebx
mov ecx, dword [ebp - 0xc]
cmp ebx, dword [ebp - 0x40]
jb 0xa60175
mov ebx, ecx
jmp 0xa601bb
push ebx
lea ecx, [ebp - 0x44]
call fcn.00a48b5e
mov ebx, dword [ebp - 0xc]
test esi, esi
jne 0xa601fa
cmp byte [ebp - 0x56], 0
je 0xa601e2
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x58]
add eax, dword [ebp + 0x18]
push eax
call fcn.00a48b5e
pop edi
mov al, 1
pop esi
mov byte [ebx + 0x20], al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebx + 0x20], 0
jne 0xa601d4
pop edi
xor al, al
mov byte [ebx + 0x20], al
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ebx, ecx
mov dword [ebp - 0x10], edi
test edi, edi
je 0xa604bf
mov dl, 1
mov byte [ebp - 1], dl
jmp 0xa60223
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
jmp 0xa6022e
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 1]
mov dword [ecx + 0x14], edi
mov dword [ebp - 0x28], 0
test dl, dl
jne 0xa60257
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
mov word [ebp - 0x3c], ax
mov esi, 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], eax
call fcn.00a443e5
mov dword [ebp - 0x28], eax
jmp 0xa6025a
mov esi, dword [ebp - 0x40]
mov edx, dword [ebp + 0x18]
movzx eax, word [ebx + 6]
mov cl, byte [ebx + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x68], edx
mov edx, dword [ebp + 0x14]
movzx edx, dx
mov dword [ebp - 0x24], eax
mov word [ebp - 0x6c], ax
mov byte [ebp - 7], cl
mov byte [ebp - 0x6a], cl
mov word [ebp - 0x64], dx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], ebx
test ax, ax
jne 0xa60295
lea eax, [edx + 2]
jmp 0xa60298
movzx eax, ax
cmp cl, 1
jne 0xa602a2
add eax, 2
jmp 0xa602aa
cmp cl, 2
jne 0xa602aa
add eax, 4
mov ebx, dword [ebp - 0xc]
add dword [ebp - 0x28], eax
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
sub ecx, edx
cmp edx, dword [ebx + 0x18]
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0xa604ca
mov eax, dword [ebx + 0x18]
sub eax, ecx
add ecx, edi
sub eax, edi
sub edx, edi
je 0xa60314
test ecx, ecx
jne 0xa602ee
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x16
call fcn.00ab4b82
jmp 0xa60314
test edi, edi
je 0xa602db
cmp eax, edx
jae 0xa60309
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x22
call fcn.00ab4b82
jmp 0xa60314
push edx
push edi
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov eax, dword [ebx + 0x14]
add eax, dword [ebp - 0x28]
cmp byte [ebp - 1], 0
mov dword [ebx + 0x14], eax
jne 0xa60335
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x44]
call fcn.00a5a0d1
mov edi, dword [ebp - 0x10]
jmp 0xa60387
mov al, byte [ebp - 0x42]
test al, al
je 0xa60387
lea ecx, [esi + 1]
cmp esi, ecx
je 0xa60387
mov dword [ebp - 0x40], ecx
cmp al, 1
jne 0xa6036b
cmp dword [ebp - 0x38], 0
jne 0xa60363
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x16
call fcn.00ab4b82
jmp 0xa60387
mov eax, dword [ebp - 0x38]
mov word [eax], cx
jmp 0xa60387
cmp byte [ebp - 0x42], 2
jne 0xa60387
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x40]
push 4
push eax
mov edx, 4
call fcn.00a54e34
add esp, 8
mov al, byte [ebp - 7]
mov esi, dword [ebx + 0x14]
cmp al, 1
jne 0xa60435
lea eax, [edi + 2]
mov dword [ebp - 0x30], eax
cmp eax, esi
ja 0xa604bb
mov eax, dword [ebp + 0x18]
mov edx, 2
mov word [ebp - 8], ax
mov ecx, edi
lea eax, [ebp - 8]
push 2
push eax
call fcn.00a54e34
mov edi, dword [ebp - 0x30]
add esp, 8
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x24]
test ax, ax
jne 0xa603f8
lea eax, [edi + 2]
mov dword [ebp - 0x30], eax
cmp eax, esi
ja 0xa604bb
lea eax, [ebp - 0x64]
mov edx, esi
push 2
push eax
sub edx, edi
mov ecx, edi
call fcn.00a54e34
mov edx, dword [ebp - 0x5c]
add esp, 8
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x20], edx
movzx ecx, word [ebp - 0x64]
lea eax, [edi + ecx]
cmp eax, esi
ja 0xa604bb
sub esi, edi
test ecx, ecx
je 0xa604bb
test edi, edi
jne 0xa6046a
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x16
call fcn.00ab4b82
pop edi
pop esi
mov byte [ebx + 0x20], 1
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp al, 2
jne 0xa603c2
lea eax, [edi + 4]
mov dword [ebp - 0x30], eax
cmp eax, esi
ja 0xa604bb
lea eax, [ebp - 0x68]
mov edx, 4
push 4
push eax
mov ecx, edi
call fcn.00a54e34
mov edx, dword [ebp - 0x5c]
add esp, 8
mov edi, dword [ebp - 0x30]
mov ax, word [ebp - 0x6c]
mov dword [ebp - 0x20], edx
jmp 0xa603c8
test edx, edx
je 0xa6048c
cmp esi, ecx
jb 0xa6048c
push ecx
push edx
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [ebx + 0x20], 1
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push esi
push 0
push edi
call fcn.00ab4bf6
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0xa60415
movzx eax, word [ebp - 0x64]
cmp esi, eax
jae 0xa604bb
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x22
call fcn.00ab4b82
mov byte [ebx + 0x20], 1
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14