Function at 0x41bb40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push esi
mov esi, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
test byte [eax + 0xc], 1
mov dword [esp + 4], eax
je 0x41bb65
xor eax, eax
pop esi
add esp, 0x28
ret
mov eax, dword [esp + 0x34]
push ebx
push ebp
mov ebp, dword [esi + 8]
push edi
lea edi, [eax*8]
sub edi, eax
add edi, edi
add edi, edi
add edi, edi
test edx, edx
mov eax, dword [edi + ebp + 0x20]
mov ebx, dword [edi + ebp + 0x18]
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], eax
je 0x41bba0
test ecx, ecx
je 0x41bbab
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x28
ret
test ecx, ecx
je 0x41bbab
cmp word [ebp], 1
jg 0x41bb96
mov ecx, dword [ebx + 0x28]
test ecx, ecx
mov eax, dword [ebx + 8]
je 0x41bbbb
cmp dword [esi + 0x28], 0
jne 0x41bb96
cmp dword [ebx + 0x2c], 0
jne 0x41bb96
cmp dword [esi + 0x24], 0
je 0x41bbcb
test ecx, ecx
jne 0x41bb96
cmp word [eax], 0
je 0x41bb96
test byte [ebx + 6], 1
jne 0x41bb96
test ecx, ecx
je 0x41bbe6
cmp word [ebp], 1
jg 0x41bb96
test edx, edx
jne 0x41bb96
mov dx, word [esi + 6]
and dx, 1
je 0x41bbf7
cmp dword [esp + 0x48], 0
jne 0x41bb96
cmp dword [esi + 0x18], 0
je 0x41bc03
cmp dword [ebx + 0x18], 0
jne 0x41bb96
cmp dword [esp + 0x44], 0
je 0x41bc10
cmp dword [ebx + 0x18], 0
jne 0x41bb96
test ecx, ecx
je 0x41bc1e
cmp dword [esi + 0xc], 0
jne 0x41bb96
test byte [edi + ebp + 0x1d], 0x20
lea eax, [edi + ebp + 0x1d]
mov dword [esp + 0x2c], eax
jne 0x41bb96
cmp dword [ebx + 0x1c], 0
je 0x41bccd
cmp dword [ebx + 0x18], 0
jne 0x41bb96
cmp dword [esp + 0x44], 0
jne 0x41bb96
test dx, dx
jne 0x41bb96
cmp word [ebp], 1
jne 0x41bb96
mov eax, ebx
mov dl, 5
jmp 0x41bc70
test byte [eax + 6], dl
jne 0x41bb96
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x41bc8a
cmp byte [eax + 4], 0x71
jne 0x41bb96
mov eax, dword [eax + 8]
test eax, eax
je 0x41bb96
cmp word [eax], 1
jne 0x41bb96
mov eax, ecx
test eax, eax
jne 0x41bc70
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41bccd
cmp dword [eax], ecx
jle 0x41bccd
mov eax, dword [eax + 0xc]
add eax, 0xe
cmp word [eax], 0
je 0x41bb96
mov edx, dword [esi + 0x18]
add ecx, 1
add eax, 0x14
cmp ecx, dword [edx]
jl 0x41bcb6
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x200]
mov dword [eax + 0x200], ecx
mov eax, dword [ebx + 0x1c]
test eax, eax
mov dword [esp + 0x14], eax
je 0x41bd6a
lea esp, [esp]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x10]
mov edi, dword [esi + 0x18]
mov ebx, dword [esi + 0x28]
mov dword [esp + 0x20], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [esi + 0x18], eax
mov dword [esi + 8], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], eax
call fcn.00416ce0
add esp, 0xc
test eax, eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x18], edi
mov dword [esi + 8], ebp
mov byte [esi + 4], 0x71
mov dword [esi + 0x24], 0
jne 0x41bd38
mov eax, dword [esp + 0x20]
jmp 0x41bd46
mov edx, dword [esp + 0x20]
mov dword [eax + 0x1c], edx
mov dword [eax + 0x24], 0
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x1e], 0
jne 0x41c06e
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x1c]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x41bcf0
mov edi, dword [esp + 0x24]
mov edx, dword [edi + ebp + 8]
mov eax, dword [edi + ebp + 0x18]
mov ebx, dword [esp + 0x10]
push edx
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
call fcn.00411130
mov eax, dword [edi + ebp + 0xc]
push eax
push ebx
call fcn.00411130
mov ecx, dword [edi + ebp + 0x10]
push ecx
push ebx
call fcn.00411130
mov eax, dword [edi + ebp + 0x14]
xor edx, edx
mov dword [edi + ebp + 8], edx
mov dword [edi + ebp + 0xc], edx
mov dword [edi + ebp + 0x10], edx
mov dword [edi + ebp + 0x18], edx
lea ebp, [edi + ebp + 0x14]
add esp, 0x18
cmp eax, edx
je 0x41bdf1
movzx ecx, word [eax + 0x20]
cmp cx, 1
jne 0x41bde7
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 0x1a0]
cmp ecx, edx
jne 0x41bdd6
mov ecx, edi
mov edi, dword [ecx + 0x21c]
mov dword [eax + 0x44], edi
mov dword [ecx + 0x21c], eax
jmp 0x41bdee
add ecx, 0xffffffff
mov word [eax + 0x20], cx
mov dword [ebp], edx
mov ebp, esi
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
test eax, eax
mov edi, dword [edx + 8]
mov ebx, dword [esp + 0x10]
movsx esi, word [edi]
mov byte [esp + 0x3c], 0
mov dword [esp + 0x18], eax
je 0x41be1d
mov ecx, dword [esp + 0x2c]
mov dl, byte [ecx]
mov byte [esp + 0x3c], dl
jmp 0x41be3a
push 0
push 0
xor eax, eax
call fcn.00417b50
add esp, 8
test eax, eax
mov dword [ebp + 8], eax
mov dword [esp + 0x18], eax
je 0x41c05c
cmp esi, 1
jle 0x41be65
mov ecx, dword [esp + 0x40]
add ecx, 1
push ecx
lea edx, [esi - 1]
push edx
push ebx
call fcn.004168f0
add esp, 0xc
mov dword [ebp + 8], eax
cmp byte [ebx + 0x1e], 0
mov dword [esp + 0x18], eax
jne 0x41c05c
test esi, esi
jle 0x41becb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add edi, 8
lea edx, [eax + ecx + 8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x20]
mov ebx, dword [esp + 0x10]
call fcn.004114c0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, 0xe
mov edi, ebx
push 0x38
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x24]
push 0
push esi
call sub.msvcrt.dll_memset
add ebx, 0x38
add esi, 0x38
add esp, 0xc
sub dword [esp + 0x28], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
jne 0x41be84
mov al, byte [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov byte [ecx + edx + 0x1d], al
mov esi, dword [ebp]
xor eax, eax
cmp dword [esi], eax
mov dword [esp + 0x28], eax
jle 0x41bf30
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x3c]
cmp dword [ecx + edx + 4], 0
lea eax, [ecx + edx]
jne 0x41bf1c
mov eax, dword [eax + 8]
test eax, eax
je 0x41bf1c
mov ebx, eax
mov edx, edi
call fcn.00414e30
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [ecx + edx + 4], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x3c], 0x14
add eax, 1
cmp eax, dword [esi]
mov dword [esp + 0x28], eax
jl 0x41bef0
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebp]
push eax
push ebx
push ecx
push edi
call fcn.0041a180
add esp, 0x10
cmp dword [esp + 0x44], 0
je 0x41bf72
mov edx, dword [esi]
mov eax, dword [ebp + 0x10]
push edx
push ebx
push eax
push edi
call fcn.0041a180
mov ecx, dword [esi]
mov edx, dword [ebp + 0x14]
push ecx
push ebx
push edx
push edi
call fcn.00419160
add esp, 0x20
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41bf85
mov dword [ebp + 0x18], eax
mov dword [esi + 0x18], 0
jmp 0x41bf9a
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x41bf9a
mov ecx, dword [esi]
push ecx
push ebx
push eax
push edi
call fcn.0041a180
add esp, 0x10
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41bfb3
push 0
push eax
push edi
call fcn.00418010
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x41bfbb
mov dword [esp + 0x3c], 0
cmp dword [esp + 0x48], 0
je 0x41c00b
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0x14], edx
mov dword [ebp + 0xc], eax
mov ecx, dword [esi]
push ecx
push ebx
push edx
push edi
call fcn.00419160
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0x14]
push 0
push eax
push edi
call fcn.00418010
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, edi
call fcn.00415870
mov dword [ebp + 0x14], eax
mov edx, dword [esi + 0x10]
push 0
push edx
push edi
call fcn.00415780
add esp, 0x2c
mov dword [ebp + 0x10], eax
jmp 0x41c02e
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
push eax
push ebx
push ecx
push edi
call fcn.00419160
mov dword [ebp + 0xc], eax
push eax
mov eax, dword [esp + 0x50]
mov ecx, edi
call fcn.00415870
add esp, 0x14
mov dword [ebp + 0xc], eax
movzx edx, byte [esi + 6]
and edx, 1
or word [ebp + 6], dx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41c04a
mov dword [ebp + 0x28], eax
mov dword [esi + 0x28], 0
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
jne 0x41bdf3
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.004151c0
add esp, 8
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x28
ret