Function at 0x41c361
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
test eax, eax
je 0x41c37a
mov dword [eax], 0
test esi, esi
je 0x41c531
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x41c531
mov dword [ebx], edx
mov dword [esp], ecx
mov eax, dword [ecx + 0x48]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], edx
mov eax, dword [eax + edx*4]
xor edi, edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], eax
movzx eax, word [esi + 4]
mov word [ebx + 0x10], ax
movzx eax, word [esi + 6]
mov word [ebx + 0x12], ax
movzx eax, word [esi + 8]
mov word [ebx + 0x14], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0x16], ax
movzx edx, word [esi + 0xe]
movzx ecx, word [esi + 0xc]
call fcn.00428b9b
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edi
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edi
movzx eax, word [esi + 0x24]
mov word [ebx + 0x38], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], edi
movzx edi, word [esi + 0x1c]
mov eax, 0x1ff
cmp edi, eax
jb 0x41c41c
mov edi, 0x1ff
lea eax, [ebx + 0x58]
lea ebp, [esi + 0x2e]
push edi
push ebp
push eax
call fcn.0044cd70
add esp, 0xc
xor eax, eax
mov byte [ebx + edi + 0x58], al
movzx edi, word [esi + 0x20]
mov eax, 0x1ff
cmp edi, eax
jb 0x41c445
mov edi, 0x1ff
mov dword [ebx + 0x48], edi
lea eax, [ebx + 0x258]
movzx ecx, word [esi + 0x1c]
add ecx, esi
add ecx, 0x2e
movzx edx, word [esi + 0x1e]
add edx, ecx
push edi
push edx
push eax
call fcn.0044cd70
add esp, 0xc
xor eax, eax
mov byte [ebx + edi + 0x258], al
mov esi, dword [esp + 4]
push esi
mov edi, dword [esp + 4]
push edi
call fcn.0041a80e
add esp, 8
mov dword [ebx + 0x4c], eax
push esi
push edi
call fcn.0041a76b
add esp, 8
mov dword [ebx + 0x50], eax
push esi
push edi
call fcn.0041a7a9
add esp, 8
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x28]
mov edi, dword [ebx + 0x2c]
mov esi, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x30]
mov edx, eax
cmp eax, ecx
ja 0x41c4b4
mov edx, ecx
mov dword [esp + 8], esi
cmp edi, esi
ja 0x41c4be
mov eax, ecx
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0x24]
je 0x41c4ca
mov edx, eax
ja 0x41c4d0
mov edi, dword [esp + 8]
mov eax, dword [ebx + 0x44]
mov dword [esp + 4], eax
mov ecx, dword [ebx + 0x40]
mov eax, edx
cmp edx, ecx
ja 0x41c4e2
mov eax, ecx
cmp edi, dword [esp + 4]
jbe 0x41c548
jne 0x41c54c
ja 0x41c4f0
mov edi, dword [esp + 4]
not eax
xor edx, edx
inc edx
or eax, edi
jne 0x41c53e
movzx edi, word [esi + 0x1e]
test edi, edi
je 0x41c53e
movzx eax, word [esi + 0x1c]
add ebp, eax
cmp edi, 3
jbe 0x41c5cb
movzx esi, word [ebp + 2]
lea eax, [esi + 4]
cmp eax, edi
ja 0x41c5cb
cmp word [ebp], 1
je 0x41c552
add ebp, eax
sub edi, esi
add edi, 0xfffffffc
jne 0x41c507
jmp 0x41c53e
xor edx, edx
test ecx, ecx
je 0x41c53e
mov dword [ecx + 0x1c], 0x18
mov eax, edx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ecx
je 0x41c4ea
mov eax, edx
jbe 0x41c4ec
jmp 0x41c4f0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41c56e
mov dword [eax], 1
mov eax, dword [ebx + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
not eax
or eax, dword [esp + 8]
jne 0x41c594
cmp si, 7
jbe 0x41c5cb
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x30], eax
add ebp, 0xc
add esi, 0xfffffff8
jmp 0x41c597
add ebp, 4
mov eax, dword [ebx + 0x28]
not eax
or eax, dword [ebx + 0x2c]
jne 0x41c5b8
cmp esi, 7
jbe 0x41c5cb
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x28], eax
add ebp, 8
add esi, 0xfffffff8
mov eax, dword [ebx + 0x40]
not eax
or eax, dword [ebx + 0x44]
jne 0x41c53e
cmp esi, 7
ja 0x41c5e4
xor edx, edx
mov eax, dword [esp]
test eax, eax
je 0x41c53e
mov dword [eax + 0x1c], 9
jmp 0x41c53e
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x40], eax
jmp 0x41c53e