Function at 0x439660
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
push edi
xor edi, edi
xor ebp, ebp
cmp ecx, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], edi
je 0x439749
mov al, byte [ecx + 0x29]
test al, al
jne 0x4396ba
cmp dword [ecx], edi
jne 0x4396ba
movzx eax, word [esi + 0x1a]
movzx edx, word [esi + 0x18]
push edi
push edi
push edi
push eax
push edx
push 5
call fcn.00462540
mov ecx, dword [esi + 0x10]
xor eax, eax
cmp word [esi + 0x20], di
setge al
mov dword [ecx + 0x20], eax
mov ecx, dword [esi + 0x10]
mov al, byte [ecx + 0x29]
test al, al
jne 0x4396c8
cmp dword [ecx], edi
je 0x4396e0
call fcn.004624d0
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
mov ebp, edx
movzx eax, byte [esi + 0x1c]
movsx ecx, word [esi + 0x20]
cmp eax, ecx
jne 0x4396f0
xor edx, edx
jmp 0x439715
mov ecx, dword [esp + 0x50]
mov dl, byte [ecx + eax*4 + 4]
mov byte [esp + 0x1a], dl
mov dl, byte [ecx + eax*4 + 5]
mov al, byte [ecx + eax*4 + 6]
mov byte [esp + 0x19], dl
mov byte [esp + 0x18], al
mov byte [esp + 0x1b], 0xff
mov edx, dword [esp + 0x18]
cmp word [esi + 0x1a], 0
jbe 0x439747
lea esp, [esp]
xor eax, eax
cmp word [esi + 0x18], ax
jbe 0x439740
movzx ecx, di
imul ecx, dword [esp + 0x2c]
movzx ebx, ax
lea ebx, [ecx + ebx*4]
inc eax
mov dword [ebx + ebp], edx
cmp ax, word [esi + 0x18]
jb 0x439730
inc edi
cmp di, word [esi + 0x1a]
jb 0x439720
xor edi, edi
mov ecx, dword [esi + 0x14]
mov word [ecx + 0x4104], di
mov edx, dword [esi + 0x14]
mov word [edx + 0x4102], di
mov edx, dword [esi + 0xc]
cmp edx, edi
je 0x439a4d
mov eax, dword [esi + 4]
mov ebx, dword [esi + 8]
lea ecx, [eax + 1]
cmp ecx, ebx
ja 0x439a4d
mov al, byte [eax + edx]
mov dword [esi + 4], ecx
movzx ecx, al
mov ebx, 1
shl ebx, cl
lea edx, [ecx + 1]
push 0
push edx
lea eax, [ebx + 2]
mov ecx, esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
call fcn.00439550
mov ebp, eax
cmp ebp, 0xffffffff
je 0x439a28
jmp 0x4397c0
cmp ebp, 0xfffffffe
je 0x439a47
lea eax, [ebx + 1]
cmp ebp, eax
je 0x439a01
cmp ebp, ebx
jne 0x4397f0
mov ecx, dword [esp + 0x38]
lea eax, [ebx + 2]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
jmp 0x4399e5
mov edx, dword [esp + 0x1c]
cmp ebp, edx
jge 0x4397fc
mov ecx, ebp
jmp 0x439805
mov ecx, dword [esp + 0x20]
mov edi, 1
lea eax, [ebx + 2]
cmp ecx, eax
jl 0x43984d
lea esp, [esp]
cmp edi, 0x1000
jg 0x439a47
cmp ecx, 0xfff
jg 0x439a47
mov edx, dword [esi + 0x14]
mov bl, byte [edx + ecx + 0x2000]
mov byte [edx + edi + 0x3000], bl
mov edx, dword [esi + 0x14]
movzx ecx, word [edx + ecx*2]
inc edi
cmp ecx, eax
jge 0x439810
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
cmp edi, 0x1000
jg 0x439a47
mov eax, dword [esi + 0x14]
mov byte [eax + edi + 0x3000], cl
mov eax, dword [esp + 0x20]
inc edi
cmp eax, ebx
je 0x4398ab
mov ebx, dword [esi + 0x14]
mov word [ebx + edx*2], ax
mov eax, dword [esi + 0x14]
mov byte [eax + edx + 0x2000], cl
inc edx
cmp edx, 0x1000
mov dword [esp + 0x1c], edx
jg 0x439a47
mov ecx, dword [esp + 0x18]
mov eax, 1
shl eax, cl
cmp edx, eax
jl 0x4398a7
cmp ecx, 0xc
jge 0x4398a7
inc ecx
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x20], ebp
je 0x4399e5
dec edi
mov dword [esp + 0x34], edi
js 0x4399e5
mov ebp, dword [esp + 0x50]
mov ecx, dword [esi + 0x14]
mov dl, byte [ebp]
mov al, byte [ecx + edi + 0x3000]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x10]
dec dl
and al, dl
mov edx, dword [esp + 0x24]
add ecx, edx
mov edx, dword [esp + 0x44]
add edx, edi
cmp cx, word [esi + 0x18]
jae 0x439947
cmp dx, word [esi + 0x1a]
jae 0x439947
mov edi, dword [esp + 0x14]
movzx edx, dx
imul edx, dword [esp + 0x2c]
movzx ecx, cx
add edx, edi
lea ecx, [edx + ecx*4]
movsx edx, word [esi + 0x20]
movzx eax, al
cmp eax, edx
je 0x439938
mov dl, byte [ebp + eax*4 + 4]
mov byte [ecx + 2], dl
mov edx, ebp
mov dl, byte [edx + eax*4 + 5]
mov byte [ecx + 1], dl
mov edx, ebp
mov al, byte [edx + eax*4 + 6]
mov byte [ecx], al
mov byte [ecx + 3], 0xff
jmp 0x439947
mov byte [ecx + 2], 0
mov byte [ecx + 1], 0
mov byte [ecx], 0
mov byte [ecx + 3], 0
mov eax, dword [esp + 0x24]
inc eax
cmp ax, word [esp + 0x48]
mov dword [esp + 0x24], eax
jne 0x4399d6
mov eax, dword [esp + 0x54]
test eax, eax
mov dword [esp + 0x24], 0
je 0x4399d2
mov ecx, dword [esp + 0x30]
movzx eax, cx
cmp eax, 3
ja case.default.0x439973
jmp dword [eax*4 + 0x439a68]
mov eax, dword [esp + 0x10]
add eax, 8
jmp 0x439993
mov eax, dword [esp + 0x10]
add eax, 4
jmp 0x439993
mov eax, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x10], eax
mov dx, word [esp + 0x10]
cmp dx, word [esp + 0x4c]
jb 0x4399d6
inc ecx
movzx eax, cx
dec eax
mov dword [esp + 0x30], ecx
je 0x4399c8
dec eax
je 0x4399be
dec eax
jne 0x4399d6
mov dword [esp + 0x10], 1
jmp 0x4399d6
mov dword [esp + 0x10], 2
jmp 0x4399d6
mov dword [esp + 0x10], 4
jmp 0x4399d6
inc dword [esp + 0x10]
mov edi, dword [esp + 0x34]
dec edi
mov dword [esp + 0x34], edi
jns 0x4398c6
mov eax, dword [esp + 0x18]
xor edi, edi
push edi
push eax
mov ecx, esi
call fcn.00439550
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4397c0
jmp 0x439a28
mov edi, dword [esp + 0x18]
push 0
push edi
mov ecx, esi
call fcn.00439550
cmp eax, 0xffffffff
je 0x439a28
cmp eax, 0xfffffffe
je 0x439a47
push 0
push edi
mov ecx, esi
call fcn.00439550
cmp eax, 0xffffffff
jne 0x439a14
mov eax, dword [esp + 0x14]
test eax, eax
je 0x439a38
mov ecx, dword [esi + 0x10]
call fcn.004624f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x18
mov ebp, dword [esp + 0x14]
xor edi, edi
cmp ebp, edi
je 0x439a59
mov ecx, dword [esi + 0x10]
call fcn.004624f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x18