Function at 0x404280
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ax, word [ebx + 2]
mov edi, ecx
mov dword [esp + 0x28], edi
mov cx, word [edi + 0x16]
add ax, cx
test ax, ax
jge 0x4042a9
xor ecx, ecx
jmp 0x4042c2
cmp ax, word [edi + 0x12]
jl 0x4042b6
movsx ecx, word [edi + 0x1e]
dec ecx
jmp 0x4042c2
movsx ecx, word [edi + 0x1a]
movsx eax, ax
cdq
idiv ecx
mov ecx, eax
mov si, word [edi + 0x14]
mov ax, si
add ax, word [ebx]
test ax, ax
jge 0x4042d5
xor eax, eax
jmp 0x4042ec
cmp ax, word [edi + 0x10]
jl 0x4042e2
movsx eax, word [edi + 0x1c]
dec eax
jmp 0x4042ec
movsx ebx, word [edi + 0x18]
movsx eax, ax
cdq
idiv ebx
mov ebx, dword [ebp + 0xc]
xor dx, dx
mov dl, al
xor ax, ax
mov al, cl
mov word [esp + 0x10], dx
mov word [esp + 0x12], ax
mov ax, word [ebx + 2]
add ax, word [edi + 0x16]
test ax, ax
jge 0x404314
xor ecx, ecx
jmp 0x40432d
cmp ax, word [edi + 0x12]
jl 0x404321
movsx ecx, word [edi + 0x1e]
dec ecx
jmp 0x40432d
movsx ecx, word [edi + 0x1a]
movsx eax, ax
cdq
idiv ecx
mov ecx, eax
add si, word [ebx]
mov eax, esi
test ax, ax
jge 0x40433b
xor eax, eax
jmp 0x404352
cmp ax, word [edi + 0x10]
jl 0x404348
movsx eax, word [edi + 0x1c]
dec eax
jmp 0x404352
movsx esi, word [edi + 0x18]
movsx eax, ax
cdq
idiv esi
xor dx, dx
mov dl, al
xor ax, ax
inc word [edi + 0x2c]
mov al, cl
mov cx, word [esp + 0x12]
mov word [esp + 0x44], dx
cmp cx, ax
jg 0x40460b
movsx ecx, cx
movsx eax, ax
mov esi, dword [ebp + 0x10]
sub eax, ecx
inc eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], eax
mov cx, word [esp + 0x10]
cmp cx, dx
jg 0x4045f7
movsx eax, cx
movsx ecx, dx
sub ecx, eax
mov dword [esp + 0x2c], eax
inc ecx
mov dword [esp + 0x30], ecx
movsx ebx, word [edi + 0x1c]
imul ebx, dword [esp + 0x1c]
mov edx, dword [edi + 0x24]
add ebx, eax
shl ebx, 4
add ebx, edx
mov dword [esp + 0x18], 0
cmp word [ebx + 0xe], 0
jbe 0x4045de
jmp 0x4043d2
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov edx, dword [ebx + 4]
mov di, word [edi + 0x2c]
and eax, 0xffff
shl eax, 2
mov ecx, dword [eax + edx]
cmp word [ecx + 0xe], di
mov word [ecx + 0xe], di
setne dl
test dl, dl
je 0x4045bf
mov ecx, dword [ebx + 4]
mov edx, dword [eax + ecx]
mov dword [esp + 0x24], edx
test byte [edx + 0xc], 1
jne 0x40442a
mov al, byte [esi + 0x30]
test al, al
jne 0x4045bf
fld dword [esi + 0x1c]
fcomp dword [0x4aa304]
fnstsw ax
test ah, 0x41
jne 0x4045bf
mov ax, word [edx]
mov cx, word [edx + 4]
cmp ax, cx
jge 0x404440
mov di, ax
mov word [esp + 0xc], cx
jmp 0x404448
mov di, cx
mov word [esp + 0xc], ax
mov cx, word [edx + 2]
mov dx, word [edx + 6]
cmp cx, dx
jge 0x404461
mov word [esp + 0x22], cx
mov word [esp + 0xe], dx
jmp 0x40446b
mov word [esp + 0x22], dx
mov word [esp + 0xe], cx
mov ax, word [esi + 0x20]
cmp ax, di
jl 0x404480
cmp ax, word [esp + 0xc]
jle 0x40448a
jmp 0x4045bf
cmp word [esi + 0x24], di
jl 0x4045bf
mov ax, word [esi + 0x22]
mov di, word [esp + 0x22]
cmp ax, di
jl 0x4044a4
cmp ax, word [esp + 0xe]
jle 0x4044ae
jmp 0x4045bf
cmp word [esi + 0x26], di
jl 0x4045bf
mov edi, dword [esp + 0x24]
mov dword [esp + 0x68], 0
movsx edx, dx
movsx eax, word [edi]
movsx edi, word [edi + 4]
mov dword [esp + 0x3c], eax
sub edi, eax
movsx eax, cx
mov dword [esp + 0x38], edi
sub edx, eax
fild dword [esp + 0x38]
mov dword [esp + 0x38], edx
mov ecx, dword [esi + 0x10]
fild dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ecx
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x50]
fstp dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], edx
fstp dword [esp + 0x70]
fild dword [esp + 0x3c]
fild dword [esp + 0x40]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x14]
lea edi, [esi + 0x18]
push eax
fstp dword [esp + 0x68]
fld dword [esp + 0x4c]
fsub st(1)
push ecx
lea edx, [esp + 0x50]
push edi
lea eax, [esp + 0x74]
push edx
push eax
fstp dword [esp + 0x5c]
push esi
mov dword [esp + 0x84], 0
fstp st(0)
fld dword [esp + 0x64]
fsub dword [esp + 0x7c]
mov dword [esp + 0x2c], 0x3f800000
fstp dword [esp + 0x64]
call fcn.00401000
add esp, 0x18
test al, al
je 0x40458a
mov ecx, dword [esi + 0x28]
fld dword [esp + 0x14]
fcomp dword [ecx + 8]
fnstsw ax
test ah, 1
je 0x40458a
fld dword [esp + 0x54]
fmul dword [edi + 4]
fld dword [esp + 0x50]
fmul dword [edi]
faddp st(1)
fcomp dword [0x4aa204]
fnstsw ax
test ah, 1
jne 0x404591
mov al, byte [esi + 0x31]
test al, al
je 0x4045bf
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0x14]
mov dword [edx + 8], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x50]
mov dword [eax], ecx
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov eax, dword [esi + 0x28]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 0x28]
mov dword [edx + 0xc], 0
mov eax, dword [esp + 0x18]
inc eax
cmp ax, word [ebx + 0xe]
mov dword [esp + 0x18], eax
jb 0x4043ce
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
inc eax
dec ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jne 0x4043a6
mov dx, word [esp + 0x44]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x1c]
inc ebx
dec eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], eax
jne 0x404387
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc