Function at 0x1002f0c0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0xc], 0
mov eax, dword [ebx]
movzx esi, byte [ebx + 0x20]
not esi
and esi, 1
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
add eax, esi
add eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
push edi
mov edi, dword [edx + 8]
test eax, eax
je 0x1002f10e
mov ecx, dword [esp + 0x3c]
sub ecx, eax
jmp 0x1002f11b
mov eax, dword [edx + 0x2c]
lea ecx, [eax + 1]
add eax, dword [esp + 0x14]
mov dword [edx + 0x2c], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x1002f12d
inc eax
jmp 0x1002f130
mov eax, dword [ecx + 0xc]
dec dword [edx + 0x38]
mov ecx, dword [esp + 0x40]
test ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x38]
mov dword [ebx + 0x18], eax
setne al
lea eax, [eax*4 + 1]
push eax
push ecx
push dword [esp + 0x3c]
push dword [ebx]
push edx
call fcn.10040560
mov eax, dword [esp + 0x48]
add esp, 0x14
add eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
test esi, esi
je 0x1002f181
push eax
push dword [ebx + 8]
push 0x78
push edi
call fcn.1005c490
mov eax, dword [esp + 0x50]
add esp, 0x10
cmp dword [esp + 0x48], ebp
jne 0x1002f1a3
mov ecx, dword [esp + 0x44]
test ecx, ecx
jle 0x1002f1a3
push ecx
add eax, esi
push eax
push dword [esp + 0x44]
push dword [esp + 0x3c]
call fcn.10041630
add esp, 0x10
cmp dword [esp + 0x18], ebp
jle 0x1002f3e9
push dword [esp + 0x14]
push dword [esp + 0x38]
push dword [esp + 0x40]
push ebx
push dword [esp + 0x40]
call fcn.10028110
mov dword [esp + 0x24], eax
add esp, 0x14
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x2c]
lea ecx, [edx + 1]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 4]
add ecx, edx
mov dword [eax + 0x2c], ecx
mov eax, dword [esp + 0x20]
sub eax, dword [ebx + 4]
add eax, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
test esi, esi
jne 0x1002f1f8
mov eax, dword [ebx + 8]
neg esi
push eax
sbb esi, esi
and esi, 0xffffffa1
add esi, 0x73
push esi
push edi
call fcn.1005c430
mov ecx, dword [edi + 0x6c]
add esp, 0xc
mov esi, dword [ebx + 4]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
cmp dword [edi + 0x70], ecx
jg 0x1002f233
push esi
push dword [esp + 0x38]
push edx
push 0x57
push edi
call fcn.10025690
add esp, 0x14
jmp 0x1002f25a
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x57
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], ebp
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jns 0x1002f265
mov ecx, dword [edi + 0x6c]
dec ecx
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x1002f274
mov ecx, 0x10095994
jmp 0x1002f27d
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x40], ecx
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x1002f4cf
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x44]
mov dword [ecx + 8], eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x44], ecx
movzx eax, word [ecx + 6]
push eax
push 0
push dword [ecx + 0x10]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi]
add esp, 0xc
cmp byte [eax + 0x51], 0
je 0x1002f2d2
push dword [esp + 0x44]
push 0xfffffffffffffff7
push eax
call fcn.10022f30
mov eax, dword [esp + 0x50]
add esp, 0xc
jmp 0x1002f309
mov eax, dword [edi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
lea ecx, [ecx - 5]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
je 0x1002f2fe
push 0xfffffffffffffff7
push dword [esp + 0x48]
push ecx
push edi
call fcn.10072b40
mov eax, dword [esp + 0x54]
add esp, 0x10
jmp 0x1002f309
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf7
movzx ecx, word [eax + 8]
movzx eax, word [eax + 6]
sub ecx, eax
dec ecx
push ecx
push dword [esp + 0x1c]
push dword [ebx]
push esi
call fcn.1004bca0
mov ecx, dword [esp + 0x50]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x54], eax
inc eax
push eax
push 0
push eax
push 0x10
push edi
call fcn.1005c4f0
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esi + 0x2c], eax
push dword [ebx + 0x10]
mov dword [ebx + 0xc], eax
push eax
push 0xc
push edi
call fcn.1005c490
push dword [ebx + 8]
push 0x8a
push edi
call fcn.1005c430
mov eax, dword [esp + 0x5c]
add esp, 0x40
test eax, eax
je 0x1002f383
push dword [ebx + 0x18]
push eax
push 0x14
push edi
call fcn.1005c490
add esp, 0x10
mov ecx, dword [esp + 0x28]
mov edx, dword [edi + 0x6c]
test ecx, ecx
jns 0x1002f391
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x1002f3a0
mov eax, 0x10095994
jmp 0x1002f3a9
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
push dword [ebx + 4]
push dword [esp + 0x4c]
push dword [esp + 0x3c]
push esi
call fcn.10041630
mov ecx, dword [esp + 0x54]
add esp, 0x10
mov edx, dword [edi + 0x6c]
test ecx, ecx
jns 0x1002f3ce
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x1002f3dd
mov eax, 0x10095994
jmp 0x1002f3e6
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1002f43a
mov eax, dword [edi + 0x6c]
mov esi, dword [ebx + 8]
add eax, 4
push eax
push ecx
push 0x30
push edi
call fcn.1005c490
push 0
push esi
push 0x20
push edi
call fcn.1005c490
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x58]
add eax, dword [esp + 0x3c]
push eax
push 0
push esi
push 0x25
push edi
call fcn.1005c5d0
push esi
push 0x7b
push edi
mov ebp, eax
call fcn.1005c430
add esp, 0x44
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x1002f461
push dword [esp + 0x14]
push dword [esp + 0x38]
push dword [esp + 0x40]
push ebx
push dword [esp + 0x40]
call fcn.10028110
add esp, 0x14
mov dword [esp + 0x10], eax
mov edx, eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x1c]
push eax
mov al, byte [ebx + 0x20]
push edx
push dword [ebx + 8]
not al
and eax, 1
add eax, 0x83
push eax
push edi
call fcn.1005c5d0
add esp, 0x18
test ebp, ebp
je 0x1002f4cf
mov edx, dword [ebx + 0x1c]
test edx, edx
jne 0x1002f49c
mov edx, dword [edi + 0x6c]
test ebp, ebp
jns 0x1002f4a4
mov ebp, dword [edi + 0x6c]
dec ebp
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x1002f4bc
pop edi
mov eax, 0x10095994
pop esi
pop ebp
pop ebx
mov dword [eax + 8], edx
add esp, 0x1c
ret
mov eax, dword [edi + 0x68]
lea ecx, [ebp*4]
add ecx, ebp
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret