Function at 0x42f1c0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 8], 6
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
je 0x42f1d8
mov edi, eax
call fcn.0042ed40
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
mov ebp, eax
mov eax, dword [eax]
sub ebp, edx
mov edx, dword [esi + 0x18]
mov dword [ecx + 0xc], edx
mov cl, byte [eax + 6]
mov edx, dword [esi + 8]
test cl, cl
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x14], ebp
jne 0x42f2f0
push ebx
mov ebx, dword [eax + 0x10]
movzx eax, byte [ebx + 0x4b]
sub ecx, edx
mov edx, eax
shl edx, 4
cmp ecx, edx
jg 0x42f22b
mov ecx, dword [esi + 0x2c]
cmp eax, ecx
jg 0x42f21f
lea eax, [ecx + ecx]
push eax
jmp 0x42f222
add ecx, eax
push ecx
push esi
call fcn.0042e9e0
add esp, 8
mov edi, dword [esi + 0x20]
mov al, byte [ebx + 0x4a]
add edi, ebp
test al, al
jne 0x42f24e
movzx ecx, byte [ebx + 0x49]
shl ecx, 4
lea ebp, [edi + 0x10]
lea eax, [ecx + ebp]
cmp dword [esi + 8], eax
jbe 0x42f26d
mov dword [esi + 8], eax
jmp 0x42f26d
mov eax, dword [esi + 8]
sub eax, edi
sar eax, 4
dec eax
push eax
mov ecx, ebx
call fcn.0042ebe0
mov edi, dword [esi + 0x20]
mov ebp, eax
mov eax, dword [esp + 0x1c]
add esp, 4
add edi, eax
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x24]
jne 0x42f27c
call fcn.0042f180
jmp 0x42f282
add eax, 0x18
mov dword [esi + 0x14], eax
mov dword [eax + 4], edi
mov dword [eax], ebp
mov dword [esi + 0xc], ebp
movzx edx, byte [ebx + 0x4b]
shl edx, 4
add edx, ebp
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov edi, dword [eax + 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 8]
cmp ecx, edi
pop ebx
jae 0x42f2c0
mov dword [ecx + 8], edx
mov edi, dword [eax + 8]
add ecx, 0x10
cmp ecx, edi
jb 0x42f2b3
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
test byte [esi + 0x36], 1
je 0x42f2ea
mov ebp, dword [esi + 0x18]
push 0xffffffffffffffff
push edx
add ebp, 4
push esi
mov dword [esi + 0x18], ebp
call fcn.0042eaf0
mov eax, dword [esi + 0x18]
add esp, 0xc
add eax, 0xfffffffc
mov dword [esi + 0x18], eax
pop edi
pop esi
xor eax, eax
pop ebp
ret
sub ecx, edx
cmp ecx, 0x140
jg 0x42f315
mov eax, dword [esi + 0x2c]
cmp eax, 0x14
jl 0x42f308
lea edx, [eax + eax]
push edx
jmp 0x42f30c
add eax, 0x14
push eax
push esi
call fcn.0042e9e0
add esp, 8
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x24]
jne 0x42f324
call fcn.0042f180
jmp 0x42f32a
add eax, 0x18
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x20]
add ecx, ebp
mov dword [eax + 4], ecx
add ecx, 0x10
mov dword [eax], ecx
mov edx, dword [esi + 8]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x18]
add edx, 0x140
mov dword [eax + 8], edx
mov dword [eax + 0x10], ecx
test byte [esi + 0x36], 1
je 0x42f360
push 0xffffffffffffffff
push 0
push esi
call fcn.0042eaf0
add esp, 0xc
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push esi
call dword [ecx + 0x10]
add esp, 4
test eax, eax
jge 0x42f37c
pop edi
pop esi
mov eax, 2
pop ebp
ret
mov edx, dword [esi + 8]
shl eax, 4
sub edx, eax
push edx
push esi
call fcn.0042ee40
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebp
ret