Function at 0x41d400
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x2c], 1
test ecx, ecx
je 0x41d696
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x2c]
xor ebx, ebx
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x5c]
lea esi, [esi]
sub eax, 1
mov edx, dword [edi + eax*4]
test edx, edx
je 0x41d455
lea ecx, [ebp + ebx*8]
cmp esi, edx
cmovae edx, esi
add ebx, 1
mov dword [ecx], edx
mov edx, 0xffffffff
mov word [ecx + 6], ax
mov word [ecx + 4], dx
test eax, eax
jne 0x41d430
cmp ebx, 1
mov dword [esp + 0x24], ebx
je 0x41d7f5
mov eax, dword [esp + 0x24]
cmp eax, 0xc
ja 0x41d6cb
lea edi, [eax*8]
lea esi, [eax + 1]
mov dword [esp + 0x1c], edi
add edi, 8
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edi
lea edi, [eax - 1]
mov dword [esp + 0x30], edi
lea edi, [eax + eax]
mov dword [esp + 0x34], edi
sub edi, 1
cmp eax, 1
mov dword [esp + 0x38], edi
jbe 0x41d538
mov esi, dword [esp + 0x5c]
mov ebp, 1
movzx eax, word [esi + 0xc]
movzx edi, word [esi + 0xe]
mov edx, ebp
mov ebx, dword [esi + 8]
mov dword [esp + 0x18], esi
mov word [esp + 0x14], ax
mov word [esp + 0x10], di
mov eax, esi
jmp 0x41d4f3
setb cl
movzx ecx, cl
test ecx, ecx
je 0x41d509
mov esi, dword [eax]
mov edi, dword [eax + 4]
sub eax, 8
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
sub edx, 1
je 0x41d64c
cmp ebx, dword [eax]
jne 0x41d4d2
movzx edi, word [esp + 0x10]
xor ecx, ecx
cmp di, word [eax + 6]
setg cl
test ecx, ecx
jne 0x41d4dc
movzx edi, word [esp + 0x10]
mov esi, dword [esp + 0x18]
shl edx, 3
add edx, dword [esp + 0x5c]
movzx eax, word [esp + 0x14]
add ebp, 1
add esi, 8
cmp dword [esp + 0x24], ebp
mov dword [edx], ebx
mov word [edx + 4], ax
mov word [edx + 6], di
jne 0x41d4b3
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x5c]
mov ecx, 0xffffffff
mov ebx, 0xffffffff
mov edi, 0xffffffff
mov esi, 0xffffffff
xor ebp, ebp
mov word [eax + 4], cx
mov dword [eax], 0xffffffff
mov word [eax + 6], bx
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x5c]
mov word [eax + 6], di
mov edi, dword [esp + 0x34]
mov word [eax + 4], si
mov dword [eax], 0xffffffff
mov esi, dword [esp + 0x5c]
mov eax, edi
sub eax, dword [esp + 0x30]
lea ecx, [esi + eax*8]
lea eax, [esi + edi*8]
mov edi, dword [esp + 0x20]
mov esi, 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
jmp 0x41d600
mov edi, dword [esp + 0x5c]
lea edx, [ebp + 1]
mov eax, dword [edi + eax + 8]
mov edi, esi
mov esi, ebp
mov ebp, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x14], ebp
ja 0x41d634
mov edi, dword [esp + 0x14]
lea ebp, [edx + 1]
mov dword [esp + 0x10], edi
add eax, ebx
mov word [ecx + 6], dx
mov edx, 0xffffffff
mov dword [ecx], eax
mov eax, 0xffffffff
mov word [ecx + 4], si
mov dword [ecx + 8], 0xffffffff
mov word [ecx + 0xc], ax
add ecx, 8
mov word [ecx + 6], dx
cmp dword [esp + 0x18], ecx
je 0x41d65a
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x10]
mov esi, dword [eax + esi*8]
mov ebx, dword [esp + 0x5c]
lea eax, [ebp*8]
mov ebx, dword [ebx + ebp*8]
cmp ebx, esi
jbe 0x41d5a1
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x5c]
mov eax, edx
add eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [edi + eax*8]
mov edi, eax
mov eax, ebx
mov ebx, esi
cmp eax, edi
mov esi, edx
mov edx, ebp
jbe 0x41d5bc
mov eax, dword [esp + 0x14]
mov ebp, edx
mov edx, dword [esp + 0x14]
add eax, 1
mov dword [esp + 0x10], eax
mov eax, edi
jmp 0x41d5c7
mov esi, dword [esp + 0x18]
movzx edi, word [esp + 0x10]
jmp 0x41d515
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0041d370
test eax, eax
jne 0x41d805
mov ecx, dword [esp + 0x54]
shl dword [esp + 0x2c], 1
test ecx, ecx
jne 0x41d41b
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x28], 8
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
jmp 0x41d538
mov eax, dword [esp + 0x24]
cmp eax, 0x39
sbb ebp, ebp
and ebp, 0xffffff93
add ebp, 0x84
cmp eax, 0x39
sbb eax, eax
and eax, 2
mov dword [esp + 0x28], eax
cmp dword [esp + 0x24], ebp
jbe 0x41d7a1
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
lea eax, [ebp*8]
neg eax
mov dword [esp + 0x10], eax
lea esi, [esi]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
movzx esi, word [eax + ebp*8 + 4]
mov edi, dword [eax + ebp*8]
mov word [esp + 0x20], si
movzx esi, word [eax + ebp*8 + 6]
mov word [esp + 0x14], si
jmp 0x41d751
seta cl
movzx ecx, cl
test ecx, ecx
je 0x41d76e
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [eax + ebp*8], edx
mov dword [eax + ebp*8 + 4], ecx
mov edx, ebx
add eax, dword [esp + 0x10]
cmp ebx, ebp
jb 0x41d775
mov ebx, edx
mov esi, eax
sub ebx, ebp
cmp dword [eax], edi
jne 0x41d731
movzx ecx, word [esp + 0x14]
cmp cx, word [eax + 6]
setg cl
movzx ecx, cl
test ecx, ecx
jne 0x41d73b
mov eax, dword [esp + 0x5c]
lea esi, [eax + edx*8]
movzx eax, word [esp + 0x20]
add dword [esp + 0x18], 1
add dword [esp + 0x1c], 8
mov dword [esi], edi
mov word [esi + 4], ax
movzx eax, word [esp + 0x14]
mov word [esi + 6], ax
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x24], eax
jne 0x41d710
add dword [esp + 0x28], 1
mov eax, dword [esp + 0x28]
cmp eax, 6
je 0x41d7bf
mov eax, dword [esp + 0x28]
mov ebp, dword [eax*4 + 0x483060]
jmp 0x41d6e9
mov eax, dword [esp + 0x24]
lea edi, [eax*8]
lea esi, [eax + 1]
mov dword [esp + 0x1c], edi
add edi, 8
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edi
lea edi, [eax - 1]
add eax, eax
mov dword [esp + 0x34], eax
sub eax, 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], eax
jmp 0x41d538
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
movsx eax, word [eax + 6]
mov byte [edi + eax], 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret