Function at 0x40b070
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
mov dword [esp + 0x18], ecx
jb 0x40b1c7
xor ebp, ebp
xor ebx, ebx
cmp eax, ebp
mov dword [esi + 0xc], 1
jbe 0x40b12b
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x24], ebp
imul ecx, dword [esi + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
fild qword [esp + 0x20]
mov dword [esp + 0x1c], ebp
fild qword [esp + 0x18]
fdivp st(1)
fiadd dword [esi + 0x18]
fadd qword [0x412808]
call sub.MSVCRT.dll__ftol
mov edx, dword [esi + 4]
mov word [edx + edi + 6], ax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x28]
xor edx, edx
mov dx, word [eax + edi + 6]
lea eax, [eax + edi + 6]
dec ecx
cmp edx, ecx
jbe 0x40b0fb
mov cx, word [esi + 0x28]
dec cx
mov word [eax], cx
mov edx, dword [esi + 4]
inc ebx
mov cx, word [edx + edi + 6]
lea eax, [edx + edi]
add edi, 0xa
mov word [eax + 8], cx
mov edx, dword [esi + 4]
mov word [edx + edi - 8], 0x100
mov eax, dword [esi + 4]
mov word [eax + edi - 6], bp
mov eax, dword [esi + 0x10]
cmp ebx, eax
jb 0x40b0a6
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebp
jbe 0x40b4e3
xor edi, edi
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x24], ebp
imul ecx, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
fild qword [esp + 0x20]
mov dword [esp + 0x1c], ebp
fild qword [esp + 0x18]
fdivp st(1)
fiadd dword [esi + 0x1c]
fadd qword [0x412808]
call sub.MSVCRT.dll__ftol
mov edx, dword [esi + 8]
mov word [edx + edi + 6], ax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x2c]
xor edx, edx
mov dx, word [eax + edi + 6]
lea eax, [eax + edi + 6]
dec ecx
cmp edx, ecx
jbe 0x40b18f
mov cx, word [esi + 0x2c]
dec cx
mov word [eax], cx
mov edx, dword [esi + 8]
inc ebx
mov cx, word [edx + edi + 6]
lea eax, [edx + edi]
add edi, 0xa
mov word [eax + 8], cx
mov edx, dword [esi + 8]
mov word [edx + edi - 8], 0x100
mov eax, dword [esi + 8]
mov word [eax + edi - 6], bp
mov eax, dword [esi + 0x14]
cmp ebx, eax
jb 0x40b13a
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
fild dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
xor ecx, ecx
fild qword [esp + 0x20]
cmp eax, edx
mov dword [esi + 0xc], edx
fdivp st(1)
jbe 0x40b351
xor edi, edi
fild dword [esi + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
fild qword [esp + 0x28]
inc ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], ecx
fmul st(2)
fadd st(1)
fstp qword [esp + 0x20]
fild qword [esp + 0x30]
fmul st(2)
faddp st(1)
fld qword [esp + 0x20]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 4]
fld st(0)
mov word [ecx + edi + 6], ax
call sub.MSVCRT.dll__ftol
mov edx, dword [esi + 4]
fld qword [esp + 0x20]
mov word [edx + edi + 8], ax
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsubr qword [esp + 0x20]
fsubr qword [0x412640]
fmul qword [0x412338]
call sub.MSVCRT.dll__ftol
fld st(0)
mov ebx, eax
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsubr st(1)
fmul qword [0x412338]
call sub.MSVCRT.dll__ftol
cmp ebx, 2
fstp st(0)
jge 0x40b2a7
mov ecx, dword [esi + 4]
mov ebp, dword [esi + 0x28]
dec ebp
mov dx, word [ecx + edi + 6]
lea ecx, [ecx + edi + 6]
and edx, 0xffff
cmp edx, ebp
jae 0x40b2a7
mov dx, word [ecx]
mov ebx, 0x100
inc edx
mov word [ecx], dx
cmp eax, 2
jge 0x40b2c7
mov edx, dword [esi + 4]
lea ecx, [edx + edi]
mov dx, word [edx + edi + 8]
cmp dx, word [ecx + 6]
jbe 0x40b2c7
dec edx
mov eax, 0x100
mov word [ecx + 8], dx
mov ecx, dword [esi + 4]
xor ebp, ebp
add ecx, edi
mov dx, word [ecx + 6]
mov bp, word [ecx + 8]
and edx, 0xffff
inc edx
cmp ebp, edx
jle 0x40b2ef
mov ax, word [ecx + 6]
inc eax
mov word [ecx + 8], ax
mov eax, 0x100
lea ecx, [eax + ebx]
mov eax, ebx
shl eax, 8
cdq
idiv ecx
mov edx, dword [esi + 4]
mov word [edx + edi + 2], ax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x28]
xor edx, edx
mov dx, word [eax + edi + 8]
lea eax, [eax + edi + 8]
dec ecx
cmp edx, ecx
jbe 0x40b32d
mov cx, word [esi + 0x28]
dec cx
xor edx, edx
mov word [eax], cx
mov eax, dword [esi + 4]
mov word [eax + edi + 2], dx
jmp 0x40b32f
xor edx, edx
mov ecx, dword [esi + 4]
lea eax, [ecx + edi]
mov cx, 0x100
add edi, 0xa
sub cx, word [eax + 2]
mov word [eax + 4], cx
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esi + 0x10]
jb 0x40b1ea
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x34], edx
fstp st(0)
fild dword [esi + 0x24]
mov dword [esp + 0x30], ecx
xor eax, eax
fild qword [esp + 0x30]
cmp ecx, edx
mov dword [esp + 0x18], eax
fdivp st(1)
jbe 0x40b4e1
xor edi, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
fild qword [esp + 0x30]
fmul st(1)
fiadd dword [esi + 0x1c]
fld st(0)
fadd qword [0x412640]
fstp qword [esp + 0x20]
fld st(0)
call sub.MSVCRT.dll__ftol
mov edx, dword [esi + 8]
fld qword [esp + 0x20]
mov word [edx + edi + 6], ax
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 8]
fld st(0)
mov word [ecx + edi + 8], ax
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsubr st(1)
fsubr qword [0x412640]
fmul qword [0x412338]
call sub.MSVCRT.dll__ftol
fstp st(0)
fld qword [esp + 0x20]
mov ebx, eax
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsubr qword [esp + 0x20]
fmul qword [0x412338]
call sub.MSVCRT.dll__ftol
cmp ebx, 1
mov dword [esp + 0x14], eax
jge 0x40b428
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x2c]
dec eax
lea ecx, [edx + edi + 6]
mov dx, word [edx + edi + 6]
mov ebp, edx
and ebp, 0xffff
cmp ebp, eax
jae 0x40b428
inc edx
mov ebx, 0x100
mov word [ecx], dx
cmp dword [esp + 0x14], 1
jge 0x40b44b
mov ecx, dword [esi + 8]
add ecx, edi
mov ax, word [ecx + 8]
cmp ax, word [ecx + 6]
jbe 0x40b44b
dec eax
mov dword [esp + 0x14], 0x100
mov word [ecx + 8], ax
mov edx, dword [esi + 8]
xor ebp, ebp
lea ecx, [edx + edi]
mov dx, word [edx + edi + 6]
mov bp, word [ecx + 8]
mov eax, edx
and eax, 0xffff
inc eax
cmp ebp, eax
jle 0x40b474
inc edx
mov eax, 0x100
mov word [ecx + 8], dx
jmp 0x40b478
mov eax, dword [esp + 0x14]
lea ecx, [eax + ebx]
mov eax, ebx
shl eax, 8
cdq
idiv ecx
mov edx, dword [esi + 8]
mov word [edx + edi + 2], ax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x2c]
xor edx, edx
mov dx, word [eax + edi + 8]
lea eax, [eax + edi + 8]
dec ecx
cmp edx, ecx
jbe 0x40b4b6
mov cx, word [esi + 0x2c]
dec cx
xor edx, edx
mov word [eax], cx
mov eax, dword [esi + 8]
mov word [eax + edi + 2], dx
jmp 0x40b4b8
xor edx, edx
mov ecx, dword [esi + 8]
lea eax, [ecx + edi]
mov cx, 0x100
add edi, 0xa
sub cx, word [eax + 2]
mov word [eax + 4], cx
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x40b377
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret