Function at 0x404120
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x416fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push edi
mov eax, dword [0x41c040]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
call fcn.00404570
mov dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
cmp eax, 3
jge 0x404179
push 0x80070057
call fcn.00401e10
movzx ecx, word [edx + 6]
cmp ecx, 0x20
je 0x4043ac
cmp ecx, 0x2c
je 0x4042d4
cmp eax, ebx
jl 0x4044a4
push 0x41a588
push edx
call fcn.00405ca7
add esp, 8
cmp eax, ebx
je 0x4044a4
sub eax, dword [esp + 0x10]
sar eax, 1
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4044a4
push ecx
lea eax, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
push eax
lea ecx, [ebp + 2]
mov eax, 2
call fcn.004047a0
call fcn.00403fc0
add esp, 4
lea edx, [esp + 0x10]
mov word [esi + 6], ax
push edx
lea ecx, [ebp + 5]
mov eax, 3
lea edx, [esp + 0x18]
call fcn.004047a0
mov edi, eax
mov byte [esp + 0x2c], 3
call fcn.00404070
mov word [esi + 2], ax
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40422d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea eax, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
push eax
lea ecx, [ebp + 9]
mov eax, 2
call fcn.004047a0
call fcn.00403fc0
mov word [esi], ax
lea eax, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
push eax
lea ecx, [ebp + 0xc]
mov eax, 2
call fcn.004047a0
call fcn.00403fc0
mov word [esi + 8], ax
lea eax, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
push eax
lea ecx, [ebp + 0xf]
mov eax, 2
call fcn.004047a0
call fcn.00403fc0
mov word [esi + 0xa], ax
lea eax, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
push eax
lea ecx, [ebp + 0x12]
mov eax, 2
call fcn.004047a0
call fcn.00403fc0
mov word [esi + 0xc], ax
movzx eax, word [esi]
add esp, 4
mov cx, 0x32
cmp cx, ax
sbb edx, edx
and edx, 0xffffff9c
add edx, 0x7d0
add dx, ax
mov word [esi], dx
jmp 0x4044a4
push ecx
lea eax, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
push eax
mov eax, 2
lea ecx, [eax + 3]
call fcn.004047a0
call fcn.00403fc0
add esp, 4
mov word [esi + 6], ax
lea ecx, [esp + 0x10]
mov eax, 3
push ecx
lea ecx, [eax + 5]
lea edx, [esp + 0x1c]
call fcn.004047a0
mov edi, eax
mov byte [esp + 0x2c], 1
call fcn.00404070
mov word [esi + 2], ax
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404343
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea ecx, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
mov eax, 4
push ecx
lea ecx, [eax + 8]
call fcn.004047a0
call fcn.00403fc0
mov word [esi], ax
lea eax, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
push eax
mov eax, 2
lea ecx, [eax + 0xf]
call fcn.004047a0
call fcn.00403fc0
mov word [esi + 8], ax
lea ecx, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
mov eax, 2
push ecx
lea ecx, [eax + 0x12]
call fcn.004047a0
call fcn.00403fc0
mov ecx, 0x17
jmp 0x40447f
push ecx
lea ecx, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
mov eax, 2
push ecx
lea ecx, [eax + 6]
call fcn.004047a0
call fcn.00403fc0
add esp, 4
mov word [esi + 6], ax
lea edx, [esp + 0x10]
mov eax, 3
push edx
lea ecx, [eax + 1]
lea edx, [esp + 0x20]
call fcn.004047a0
mov edi, eax
mov byte [esp + 0x2c], 2
call fcn.00404070
mov word [esi + 2], ax
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40441b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea ecx, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
mov eax, 4
push ecx
lea ecx, [eax + 0x10]
call fcn.004047a0
call fcn.00403fc0
mov word [esi], ax
lea eax, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
push eax
mov eax, 2
lea ecx, [eax + 9]
call fcn.004047a0
call fcn.00403fc0
mov word [esi + 8], ax
lea ecx, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
mov eax, 2
push ecx
lea ecx, [eax + 0xc]
call fcn.004047a0
call fcn.00403fc0
mov ecx, 0x11
mov word [esi + 0xa], ax
lea eax, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
push eax
mov eax, 2
call fcn.004047a0
call fcn.00403fc0
mov word [esi + 0xc], ax
add esp, 4
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
cmp word [esi], bx
je 0x4044e9
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x20
ret
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x20
ret