Function at 0x41cc5c
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, ecx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 0x38]
movzx ebx, word [edi + 0x18]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x40]
lea eax, [eax + ecx*2]
add ecx, ebp
mov dword [esp + 0x10], eax
movzx eax, byte [edi + 0xc]
add eax, ebx
mov dword [esp + 0x14], ecx
add eax, edx
mov dword [esp + 0x1c], eax
cmp edx, ebp
jge 0x41ccf2
mov eax, ebp
mov ecx, edi
sub eax, edx
push esi
push eax
call fcn.0041cba0
mov edx, eax
mov dword [esp + 0x28], edx
pop ecx
pop ecx
cmp edx, ebx
jle 0x41ccd2
pop edi
pop esi
pop ebp
mov ecx, 0x11379
pop ebx
add esp, 0x20
jmp fcn.00464038
mov ecx, dword [edi + 0x40]
lea eax, [ebx + ebx]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.004793b0
mov eax, dword [esp + 0x28]
add esp, 0xc
sub ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jge 0x41cd07
sub eax, ecx
mov edx, ecx
push esi
push eax
mov ecx, edi
call fcn.0041cba0
pop ecx
pop ecx
sub ebx, eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
movzx ecx, byte [eax + edx + 5]
movzx eax, byte [eax + edx + 6]
shl ecx, 8
or ecx, eax
dec ecx
movzx eax, cx
xor ecx, ecx
inc eax
add eax, edx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jb 0x41ce9b
mov eax, dword [esp + 0x18]
cmp ebp, eax
jge 0x41cd8e
mov esi, dword [edi + 0x40]
mov ecx, eax
sub ecx, ebp
lea eax, [ebx + ebx]
cmp dword [esp + 0x38], ecx
push eax
cmovl ecx, dword [esp + 0x3c]
push esi
mov dword [esp + 0x24], ecx
lea eax, [esi + ecx*2]
push eax
call fcn.004793b0
push dword [esp + 0x48]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push dword [esp + 0x2c]
mov ecx, edi
push ebp
push esi
push eax
call fcn.0041ca7e
add esp, 0x20
test eax, eax
jne 0x41ce9b
add ebx, dword [esp + 0x1c]
xor ecx, ecx
mov eax, dword [esp + 0x18]
cmp byte [edi + 0xc], 0
mov edx, ecx
mov dword [esp + 0x1c], edx
jbe 0x41ce2e
lea ecx, [edi + 0x1c]
mov dword [esp + 0x20], ecx
movzx esi, word [ecx]
sub esi, ebp
add esi, eax
js 0x41ce12
cmp esi, dword [esp + 0x38]
jge 0x41ce12
mov eax, dword [edi + 0x40]
lea ecx, [eax + esi*2]
mov dword [esp + 0x2c], ecx
cmp ebx, esi
jle 0x41cdd6
mov eax, ebx
sub eax, esi
add eax, eax
push eax
push ecx
lea eax, [ecx + 2]
push eax
call fcn.004793b0
add esp, 0xc
mov ecx, dword [esp + 0x3c]
add esi, ebp
mov edx, esi
inc ebx
call fcn.0041c8ab
push dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 1
push esi
push dword [esp + 0x38]
mov ecx, edi
push eax
call fcn.0041ca7e
add esp, 0x14
test eax, eax
jne 0x41ce9b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
movzx eax, byte [edi + 0xc]
inc edx
add ecx, 2
mov dword [esp + 0x1c], edx
cmp edx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x18]
jl 0x41cda5
mov eax, dword [edi + 0x40]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
push esi
lea ecx, [eax + ebx*2]
mov eax, dword [esp + 0x3c]
sub eax, ebx
push eax
lea eax, [ebx + ebp]
push eax
push ecx
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.0041ca7e
add esp, 0x14
test eax, eax
jne 0x41ce9f
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
movzx eax, ax
mov word [edi + 0x18], ax
shr eax, 8
mov byte [edi + 0xc], cl
mov ecx, dword [esp + 0x14]
mov byte [ebx + edx + 3], al
mov al, byte [edi + 0x18]
mov byte [ebx + edx + 4], al
mov eax, ecx
sub eax, edx
sub cl, dl
sar eax, 8
mov byte [ebx + edx + 5], al
xor eax, eax
mov byte [ebx + edx + 6], cl
jmp 0x41cf10
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov edx, ebx
mov dword [esp + 0x28], ebx
test ebx, ebx
jle 0x41cf03
mov ebx, ebp
lea ecx, [ebp*2]
shl ebx, 2
xor ebp, ebp
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0xc]
cmp word [ecx + eax], bp
jne 0x41cee8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push dword [eax + ebx]
push ecx
call dword [ecx + 0x4c]
mov edx, dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
mov word [edx + ecx], ax
mov ecx, edx
mov edx, dword [esp + 0x28]
add ecx, 2
add ebx, 4
dec edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
test edx, edx
jg 0x41cebf
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
push edi
push ebx
mov edx, ebp
mov ecx, esi
call fcn.0041c8bc
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret