Function at 0x40c920
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
sub esp, 0x4c
push esi
mov esi, ecx
push edi
fld dword [esi + 0x68]
fmul dword [0x4fedb4]
mov eax, dword [esi + 0x30]
dec eax
fstp dword [esp + 8]
je 0x40ca89
dec eax
je 0x40c9e8
dec eax
jne 0x40cb8d
fld dword [esp + 8]
fmul dword [esi + 0x20]
fadd dword [esi + 0x74]
fst dword [esi + 0x74]
fcomp dword [esi + 0x78]
fnstsw ax
and eax, 0x100
jne 0x40c96f
mov byte [esi + 0x24], 1
pop edi
pop esi
add esp, 0x4c
ret
mov eax, dword [esp + 8]
inc ebx
into
push eax
call fcn.0040c290
fld dword [esi + 0x20]
fld st(0)
fmul dword [esi + 0x5c]
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
fstp dword [esp + 0x1c]
fld st(0)
fmul dword [esi + 0x60]
fstp dword [esp + 0x20]
fmul dword [esi + 0x64]
fstp dword [esp + 0x24]
call dword [edx + 0x30]
fld dword [esp + 8]
fmul dword [esi + 0x14]
fld dword [esp + 8]
fmul dword [esi + 0x18]
fld dword [esp + 8]
fmul dword [esi + 0x1c]
mov edx, dword [esi]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
fstp dword [esp + 0x18]
fxch st(1)
fadd dword [esi + 8]
fstp dword [esp + 0x28]
fadd dword [esi + 0xc]
fstp dword [esp + 0x2c]
fld dword [esp + 0x18]
fadd dword [esi + 0x10]
fstp dword [esp + 0x30]
call dword [edx + 0x2c]
jmp 0x40cb8d
fld dword [esp + 8]
fmul dword [esi + 0x20]
fadd dword [esi + 0x74]
fst dword [esi + 0x74]
fcomp dword [esi + 0x78]
fnstsw ax
and eax, 0x100
jne 0x40ca10
push 3
mov ecx, esi
call fcn.0040c190
pop edi
pop esi
add esp, 0x4c
ret
mov ecx, dword [esp + 8]
push ecx
mov ecx, esi
call fcn.0040c290
fld dword [esi + 0x20]
fld st(0)
fmul dword [esi + 0x5c]
mov edx, dword [esi]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
fstp dword [esp + 0x34]
fld st(0)
fmul dword [esi + 0x60]
fstp dword [esp + 0x38]
stosd dword es:[edi], eax
dec esi
fstp dword fs:[esp + 0x3c]
call dword [edx + 0x30]
fld dword [esp + 8]
fmul dword [esi + 0x14]
fld dword [esp + 8]
fmul dword [esi + 0x18]
fld dword [esp + 8]
fmul dword [esi + 0x1c]
mov edx, dword [esi]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
fstp dword [esp + 0x18]
fxch st(1)
fadd dword [esi + 8]
fstp dword [esp + 0x40]
fadd dword [esi + 0xc]
fstp dword [esp + 0x44]
fld dword [esp + 0x18]
fadd dword [esi + 0x10]
fstp dword [esp + 0x48]
call dword [edx + 0x2c]
jmp 0x40cb8d
fld dword [esp + 8]
fmul dword [esi + 0x20]
mov ecx, esi
fadd dword [esi + 0x74]
fst dword [esi + 0x74]
fcomp dword [esi + 0x78]
fnstsw ax
and eax, 0x100
jne 0x40cab1
push 2
call fcn.0040c190
pop edi
pop esi
add esp, 0x4c
ret
fld dword [esp + 8]
fmul dword [esi + 0x14]
fld dword [esp + 8]
fmul dword [esi + 0x18]
fld dword [esp + 8]
fmul dword [esi + 0x1c]
mov edx, dword [esi]
lea eax, [esp + 0x48]
push eax
fstp dword [esp + 0x48]
fxch st(1)
fadd dword [esi + 8]
fstp dword [esp + 0x4c]
fadd dword [esi + 0xc]
fstp dword [esp + 0x50]
fld dword [esp + 0x48]
fadd dword [esi + 0x10]
fstp dword [esp + 0x54]
call dword [edx + 0x2c]
mov eax, dword [0x5304f0]
mov ecx, dword [eax + 0xa8]
add ecx, 0xc4
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x14], ecx
mov cl, byte [esi + 0x88]
test cl, cl
jne 0x40cb8d
fld dword [esi + 8]
fsub dword [esp + 0xc]
fld dword [esi + 0xc]
fsub dword [esp - 0x11]
fld dword [esi + 0x10]
fsub dword [esp + 0x14]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fcomp dword [eax + 0x7a8c]
fnstsw ax
test ah, 5
jp 0x40cb8d
mov byte [esi + 0x88], 1
mov edx, dword [0x5304f0]
mov eax, dword [edx + 0x7a88]
mov dword [esi + 0x8c], eax
mov ecx, dword [0x5304f0]
mov edx, dword [ecx + 0x7a7c]
mov dword [esi + 0x90], 0
mov dword [esi + 0x98], edx
mov al, byte [esi + 0x88]
test al, al
je 0x40cc24
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
cmp eax, ecx
jge 0x40cc24
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x90]
add edx, ecx
mov ecx, dword [esi + 0x8c]
cmp edx, ecx
mov dword [esi + 0x90], edx
jl 0x40cc24
lea edi, [esi + 8]
mov edx, dword [esi + 0x90]
push eax
sub edx, ecx
mov ecx, esi
mov dword [esi + 0x90], edx
lea edx, [eax + 1]
mov dword [esi + 0x94], edx
call fcn.0040cc30
push 0
push 0x42c80000
push 0x41a00000
push edi
push 0xb7
mov ecx, 0x5304a0
call fcn.00414870
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
cmp eax, ecx
jge 0x40cc24
add al, ch
insb byte es:[edi], dx
jl 0x40cc03
add byte [ebx + 0x9486], cl
add byte [ebx + 0x988e], cl
add byte [ebx], bh
sar dword [ebp + 0x10], 0x8b
mov cs, word [eax + eax + 0x448b0000]
nop
add byte [eax], al
add byte [ebx], bh
sar dword [ebp - 0x26], 1
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax + edx*4]
add byte [eax], al
cmp edx, ecx
jge 0x40cbfe
pop edi
pop esi
add esp, 0x4c
ret