Function at 0x40c810
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1a0]
mov ecx, dword [esi + 0x19c]
sar eax, 0xa
add ax, word [esi + 0x1ae]
sar ecx, 0xa
add cx, word [esi + 0x1ac]
mov word [esp + 0x2e], ax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
mov word [esp + 0x2c], cx
mov edi, dword [eax + 0x10]
test edi, edi
je 0x40d231
mov ebx, dword [edi + 0xe4]
xor edx, edx
test ebx, ebx
setne dl
test edx, edx
je 0x40d231
mov edx, dword [ebp + 0xc]
movsx ebx, word [eax + 0x18]
movsx edx, word [edx]
imul ebx, edx
sar ebx, 0xa
movsx eax, word [eax + 0x1a]
mov dword [esp + 0x1c], edx
mov edx, ebx
mov ebx, dword [esp + 0x2c]
sub ebx, edx
mov edx, dword [ebp + 0xc]
add ebx, 0x190
movsx edx, word [edx + 2]
imul eax, edx
sar eax, 0xa
mov dword [esp + 0x18], edx
mov edx, eax
mov eax, dword [esp + 0x2e]
sub eax, edx
mov dx, word [esi + 0x1b0]
add dx, cx
mov cx, word [esi + 0x1b2]
add cx, word [esp + 0x2e]
mov word [esp + 0x24], dx
add eax, 0x12c
mov word [esp + 0x26], cx
mov ecx, dword [esi + 0x10]
mov word [esp + 0x22], ax
movsx edx, word [ecx + 0x18]
imul edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
sar edx, 0xa
sub ecx, edx
add ecx, 0x190
mov word [esp + 0xc], cx
mov ecx, dword [esi + 0x10]
sub word [esp + 0xc], bx
movsx edx, word [ecx + 0x1a]
imul edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x26]
sar edx, 0xa
sub ecx, edx
mov edx, dword [esi + 0x10]
add ecx, 0x12c
mov dx, word [edx + 0xe]
sub cx, ax
test dx, dx
mov word [esp + 0xe], cx
je 0x40ce0d
movsx eax, dx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul dword [0x4aa634]
fmul dword [0x4aa630]
call fcn.0047e340
and eax, 0x3ff
push 0x3f800000
shl eax, 2
push 0
push 0
mov ecx, dword [eax + 0x4d0fac]
mov edx, dword [eax + 0x4d1fac]
movsx eax, word [esp + 0x1a]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], ecx
cdq
sub eax, edx
mov ecx, eax
movsx eax, word [esp + 0x18]
cdq
sub eax, edx
movsx edx, word [esp + 0x2e]
sar ecx, 1
add edx, ecx
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
movsx edx, bx
fstp dword [esp]
fld dword [esp + 0x28]
push ecx
push ecx
sar eax, 1
fchs
fstp dword [esp]
add edx, eax
push ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
fild dword [esp + 0x40]
mov eax, dword [esp + 0x34]
fstp dword [esp]
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.0040d6b0
mov eax, dword [esp + 0x14]
neg eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x24]
neg eax
mov dword [esp + 0x24], eax
fst dword [esp + 0x2c]
fild dword [esp + 0x24]
fld st(0)
fld dword [esp + 0x58]
fmul st(1)
fld dword [esp + 0x54]
fmul dword [esp + 0x2c]
faddp st(1)
fadd dword [esp + 0x5c]
fstp dword [esp + 0x34]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0x2c]
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [esp + 0x38]
fstp st(0)
fild dword [esp + 0x14]
fst dword [esp + 0x24]
fstp dword [esp + 0x2c]
fld dword [esp + 0x58]
fmul st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x54]
mov ax, word [esi + 0x18]
test al, 2
faddp st(1)
fadd dword [esp + 0x5c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x60]
fmul dword [esp + 0x2c]
fld dword [esp + 0x64]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [esp + 0x40]
fstp st(0)
fld dword [esp + 0x24]
fild dword [esp + 0x1c]
fst dword [esp + 0x24]
fld dword [esp + 0x58]
fmul st(1)
fld st(2)
fmul dword [esp + 0x54]
faddp st(1)
fadd dword [esp + 0x5c]
fstp dword [esp + 0x44]
fld dword [esp + 0x60]
fmul st(2)
fld dword [esp + 0x64]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [esp + 0x48]
fstp st(0)
fstp st(0)
fld dword [esp + 0x24]
fld dword [esp + 0x58]
fmul st(1)
fld st(2)
fmul dword [esp + 0x54]
faddp st(1)
fadd dword [esp + 0x5c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x60]
fmul st(2)
fld dword [esp + 0x64]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [esp + 0x50]
fstp st(0)
fstp st(0)
je 0x40cc7d
test al, 1
je 0x40cbb2
movsx ecx, word [edi + 2]
movsx edx, word [edi]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
mov ecx, dword [esi + 0x2a]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x2e]
push eax
fsub dword [0x4aa560]
mov eax, dword [esi + 0x32]
push ecx
mov ecx, dword [esi + 0x36]
push edx
mov edx, dword [esi + 0x1a]
push eax
fstp dword [esp + 0x1c]
fild dword [esp + 0x34]
mov eax, dword [esi + 0x1e]
push ecx
mov ecx, dword [esi + 0x22]
push edx
fsub dword [0x4aa560]
mov edx, dword [esi + 0x26]
push eax
mov eax, dword [0x4aa560]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
fstp dword [esp + 0x38]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x70]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x70]
push eax
push eax
mov eax, dword [esp + 0x7c]
push edi
push eax
mov eax, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
push eax
push ecx
push 0x1e
mov ecx, 4
push 1
push ecx
push ecx
lea ecx, [esp + 0xa4]
call fcn.0040ddc0
mov edx, dword [eax]
push edx
call fcn.004503a0
add esp, 0x6c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx eax, word [edi + 2]
movsx ecx, word [edi]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
mov eax, dword [esi + 0x2e]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x2a]
push edx
fsub dword [0x4aa560]
mov edx, dword [esi + 0x36]
push eax
mov eax, dword [esi + 0x32]
push ecx
mov ecx, dword [esi + 0x1e]
push edx
fstp dword [esp + 0x1c]
fild dword [esp + 0x34]
mov edx, dword [esi + 0x1a]
push eax
mov eax, dword [esi + 0x26]
push ecx
mov ecx, dword [esi + 0x22]
push edx
fsub dword [0x4aa560]
push eax
mov eax, dword [0x4aa560]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push eax
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x74]
push eax
push eax
mov eax, dword [esp + 0x80]
push edi
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0xa0]
push edx
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xa0]
push ecx
push edx
push eax
push 0x1e
mov ecx, 4
push 1
push ecx
push ecx
lea ecx, [esp + 0xa4]
call fcn.0040ddc0
mov ecx, dword [eax]
push ecx
call fcn.004503a0
add esp, 0x6c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test al, 1
je 0x40cd53
movsx edx, word [edi + 2]
movsx eax, word [edi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov edx, dword [esi + 0x32]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x36]
push ecx
fsub dword [0x4aa560]
mov ecx, dword [esi + 0x2a]
push edx
mov edx, dword [esi + 0x2e]
push eax
mov eax, dword [esi + 0x22]
push ecx
fstp dword [esp + 0x1c]
fild dword [esp + 0x34]
mov ecx, dword [esi + 0x26]
push edx
mov edx, dword [esi + 0x1a]
push eax
mov eax, dword [esi + 0x1e]
push ecx
fsub dword [0x4aa560]
mov ecx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [0x4aa560]
push ecx
push eax
fstp dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x74]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x84]
push eax
push eax
mov eax, dword [esp + 0x94]
push edi
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
push eax
push ecx
push edx
push 0x1e
mov ecx, 4
push 1
push ecx
push ecx
lea ecx, [esp + 0xa4]
call fcn.0040ddc0
mov eax, dword [eax]
push eax
call fcn.004503a0
add esp, 0x6c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, word [edi + 2]
movsx edx, word [edi]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
mov ecx, dword [esi + 0x36]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x32]
push eax
fsub dword [0x4aa560]
mov eax, dword [esi + 0x2e]
push ecx
mov ecx, dword [esi + 0x2a]
push edx
mov edx, dword [esi + 0x26]
push eax
fstp dword [esp + 0x1c]
fild dword [esp + 0x34]
mov eax, dword [esi + 0x22]
push ecx
mov ecx, dword [esi + 0x1e]
push edx
fsub dword [0x4aa560]
mov edx, dword [esi + 0x1a]
push eax
mov eax, dword [0x4aa560]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
fstp dword [esp + 0x38]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x78]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x88]
push eax
push eax
mov eax, dword [esp + 0x94]
push edi
push eax
mov eax, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x90]
push edx
push eax
push ecx
push 0x1e
mov ecx, 4
push 1
push ecx
push ecx
lea ecx, [esp + 0xa4]
jmp 0x40cb99
mov edx, dword [esi + 0x10]
mov dx, word [edx + 6]
mov dword [esp + 0x24], edx
test dl, 0x10
mov edx, dword [esi + 0x10]
mov edx, dword [edx + 0x14]
mov dword [esp + 0x18], edx
je 0x40cf77
test edx, edx
mov dx, word [esi + 0x18]
je 0x40cee1
test dl, 2
movsx ecx, cx
je 0x40ce41
neg ecx
test dl, 1
movsx edx, word [esp + 0xc]
mov dword [esp + 0x1c], ecx
je 0x40ce51
neg edx
mov ecx, 4
mov byte [esp + 0x17], 0x1f
mov byte [esp + 0x15], cl
mov byte [esp + 0x14], cl
mov byte [esp + 0x16], cl
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x36]
push ecx
mov ecx, dword [esi + 0x32]
push ecx
mov ecx, dword [esi + 0x2e]
push ecx
mov ecx, dword [esi + 0x2a]
push ecx
mov ecx, dword [esi + 0x26]
push ecx
mov ecx, dword [esi + 0x22]
push ecx
mov ecx, dword [esi + 0x1e]
push ecx
mov ecx, dword [esi + 0x1a]
push ecx
mov ecx, dword [esi + 0x48]
push ecx
mov ecx, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x40]
push ecx
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
movsx ecx, word [edi + 2]
push ecx
movsx ecx, word [edi]
push ecx
mov ecx, dword [esp + 0x5c]
push 0
push 0
push edi
push ecx
mov ecx, dword [ebp + 8]
push edx
movsx eax, ax
movsx edx, word [ecx + 2]
movsx ecx, word [ecx]
add edx, eax
mov eax, dword [esp + 0x68]
push edx
movsx edx, bx
add ecx, edx
push ecx
push eax
call fcn.0044df10
add esp, 0x60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test dl, 2
movsx ecx, cx
je 0x40ceeb
neg ecx
test dl, 1
movsx edx, word [esp + 0xc]
mov dword [esp + 0x1c], ecx
je 0x40cefb
neg edx
mov ecx, 4
mov byte [esp + 0x16], 1
mov byte [esp + 0x15], cl
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x17], 0x1f
push ecx
mov ecx, dword [esi + 0x36]
push ecx
mov ecx, dword [esi + 0x32]
push ecx
mov ecx, dword [esi + 0x2e]
push ecx
mov ecx, dword [esi + 0x2a]
push ecx
mov ecx, dword [esi + 0x26]
push ecx
mov ecx, dword [esi + 0x22]
push ecx
mov ecx, dword [esi + 0x1e]
push ecx
mov ecx, dword [esi + 0x1a]
push ecx
movsx ecx, word [edi + 2]
push ecx
movsx ecx, word [edi]
push ecx
mov ecx, dword [esp + 0x48]
push 0
push 0
push edi
push ecx
mov ecx, dword [ebp + 8]
push edx
movsx eax, ax
movsx edx, word [ecx + 2]
movsx ecx, word [ecx]
add edx, eax
mov eax, dword [esp + 0x54]
push edx
movsx edx, bx
add ecx, edx
push ecx
push eax
call fcn.0044a140
add esp, 0x4c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test edx, edx
je 0x40d1a0
mov edx, dword [esp + 0x24]
test dh, 2
je 0x40d0f2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004518a0
cdq
and edx, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x51eb851f
mul dword [0x52ab34]
mov eax, edx
xor edx, edx
sar ecx, 5
shr eax, 5
div ecx
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 0x14]
push eax
call fcn.004518b0
cdq
fild dword [esp + 0x2c]
and edx, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x51eb851f
mul dword [0x52ab34]
fmul dword [0x4aa62c]
fstp dword [esp + 0x24]
mov eax, edx
xor edx, edx
sar ecx, 5
shr eax, 5
div ecx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x14]
push eax
call fcn.004518a0
mov dword [esp + 0x30], eax
mov ecx, dword [esi + 0x10]
fild dword [esp + 0x30]
mov edx, dword [ecx + 0x14]
push edx
fdivr dword [esp + 0x2c]
fadd dword [esi + 0x3c]
fstp dword [esp + 0x3c]
fild dword [esp + 0x28]
fmul dword [0x4aa62c]
fstp dword [esp + 0x2c]
call fcn.004518b0
mov dword [esp + 0x34], eax
mov ax, word [esi + 0x18]
fild dword [esp + 0x34]
movsx edx, word [esp + 0x1e]
fdivr dword [esp + 0x2c]
add esp, 0x10
test al, 2
fadd dword [esi + 0x40]
fstp dword [esp + 0x24]
je 0x40d054
neg edx
test al, 1
movsx eax, word [esp + 0xc]
je 0x40d05f
neg eax
mov ecx, 4
mov byte [esp + 0x16], 7
mov byte [esp + 0x15], cl
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x17], 0x1e
push ecx
mov ecx, dword [esi + 0x36]
push ecx
mov ecx, dword [esi + 0x32]
push ecx
mov ecx, dword [esi + 0x2e]
push ecx
mov ecx, dword [esi + 0x2a]
push ecx
mov ecx, dword [esi + 0x26]
push ecx
mov ecx, dword [esi + 0x22]
push ecx
mov ecx, dword [esi + 0x1e]
push ecx
mov ecx, dword [esi + 0x1a]
push ecx
mov ecx, dword [esi + 0x48]
push ecx
mov ecx, dword [esi + 0x44]
push ecx
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x14]
push ecx
movsx ecx, word [edi + 2]
push ecx
movsx ecx, word [edi]
push ecx
push 0
movsx ecx, word [esp + 0x66]
push 0
push edi
push edx
push eax
mov eax, dword [ebp + 8]
movsx edx, word [eax + 2]
add edx, ecx
mov ecx, dword [esp + 0x68]
push edx
movsx edx, word [eax]
movsx eax, bx
add edx, eax
push edx
push ecx
call fcn.0044df10
add esp, 0x60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dx, word [esi + 0x18]
test dl, 2
movsx ecx, cx
je 0x40d100
neg ecx
test dl, 1
movsx edx, word [esp + 0xc]
mov dword [esp + 0x20], ecx
je 0x40d110
neg edx
mov ecx, 4
mov byte [esp + 0x17], 0x1e
mov byte [esp + 0x15], cl
mov byte [esp + 0x14], cl
mov byte [esp + 0x16], cl
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x36]
push ecx
mov ecx, dword [esi + 0x32]
push ecx
mov ecx, dword [esi + 0x2e]
push ecx
mov ecx, dword [esi + 0x2a]
push ecx
mov ecx, dword [esi + 0x26]
push ecx
mov ecx, dword [esi + 0x22]
push ecx
mov ecx, dword [esi + 0x1e]
push ecx
mov ecx, dword [esi + 0x1a]
push ecx
mov ecx, dword [esi + 0x48]
push ecx
mov ecx, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x40]
push ecx
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
movsx ecx, word [edi + 2]
push ecx
movsx ecx, word [edi]
push ecx
mov ecx, dword [esp + 0x60]
push 0
push 0
push edi
push ecx
mov ecx, dword [ebp + 8]
push edx
movsx eax, ax
movsx edx, word [ecx + 2]
movsx ecx, word [ecx]
add edx, eax
mov eax, dword [esp + 0x68]
push edx
movsx edx, bx
add ecx, edx
push ecx
push eax
call fcn.0044df10
add esp, 0x60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dx, word [esi + 0x18]
test dl, 2
movsx ecx, cx
je 0x40d1ae
neg ecx
test dl, 1
movsx edx, word [esp + 0xc]
mov dword [esp + 0x20], ecx
je 0x40d1be
neg edx
mov ecx, 4
mov byte [esp + 0x1a], 1
mov byte [esp + 0x19], cl
mov byte [esp + 0x18], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x1b], 0x1e
push ecx
mov ecx, dword [esi + 0x36]
push ecx
mov ecx, dword [esi + 0x32]
push ecx
mov ecx, dword [esi + 0x2e]
push ecx
mov ecx, dword [esi + 0x2a]
push ecx
mov ecx, dword [esi + 0x26]
push ecx
mov ecx, dword [esi + 0x22]
push ecx
mov ecx, dword [esi + 0x1e]
push ecx
mov ecx, dword [esi + 0x1a]
push ecx
movsx ecx, word [edi + 2]
push ecx
movsx ecx, word [edi]
push ecx
mov ecx, dword [esp + 0x4c]
push 0
push 0
push edi
push ecx
mov ecx, dword [ebp + 8]
push edx
movsx eax, ax
movsx edx, word [ecx + 2]
movsx ecx, word [ecx]
add edx, eax
mov eax, dword [esp + 0x58]
push edx
movsx edx, bx
add ecx, edx
push ecx
push eax
call fcn.0044a140
add esp, 0x4c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8