Function at 0x40c140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x411f8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [0x4171cc]
mov dword [esp + 0x100], eax
mov eax, dword [0x417190]
push ebx
inc eax
push esi
cdq
mov esi, 0xa
idiv esi
mov eax, dword [ecx + 4]
push edi
push 0xcd
push eax
mov dword [esp + 0x28], ecx
mov dword [0x417190], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
xor esi, esi
mov edi, eax
mov dword [esp + 0x10], esi
call fcn.00408b70
mov ebx, eax
cmp ebx, esi
je 0x40c520
lea ecx, [esp + 0x10]
push ecx
push 0xe
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.00405ca0
mov eax, dword [ebx]
push ebx
mov dword [esp + 0x120], esi
call dword [eax + 8]
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x40c1de
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
jmp 0x40c1e2
mov dword [esp + 0xc], esi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
push 0x1004
push edi
call ebx
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jle 0x40c21c
lea ebx, [ebx]
push esi
push ecx
push 0x1008
push edi
call ebx
push esi
push esi
push 0x1004
push edi
call ebx
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jg 0x40c200
xor edx, edx
test ecx, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x24], esi
jle 0x40c48b
mov eax, dword [esp + 0xc]
add eax, 0xfcc
mov dword [esp + 0xc], eax
jmp 0x40c270
mov eax, dword [esp + 0xc]
lea ecx, [ecx]
mov dword [esp + 0x28], 7
test byte [eax + 0x10], 8
je 0x40c294
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov dword [esp + 0x44], 0xffffffff
jge 0x40c29e
mov dword [esp + 0x14], esi
jmp 0x40c29e
mov ecx, dword [0x417190]
mov dword [esp + 0x44], ecx
push 0
push 0
mov dword [esp + 0x34], esi
mov edx, dword [eax + 0x30]
push 0x1004
add eax, 0xfffff038
push edi
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], eax
call ebx
cmp eax, esi
jg 0x40c2d3
lea eax, [esp + 0x28]
push eax
push 0
push 0x1007
push edi
call ebx
jmp 0x40c2fa
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x1006
push edi
call ebx
push 3
push esi
push 0x102c
push edi
call ebx
cmp eax, 3
jne 0x40c2fa
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
cmp eax, 0x100000
jbe 0x40c33d
test eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jge 0x40c319
fadd qword [0x413bc0]
fmul qword [0x413fa0]
sub esp, 8
lea eax, [esp + 0xd0]
fstp qword [esp]
push 0x413f98
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x10
jmp 0x40c391
cmp eax, 0x400
jbe 0x40c37a
test eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jge 0x40c356
fadd qword [0x413bc0]
fmul qword [0x413f90]
sub esp, 8
lea ecx, [esp + 0xd0]
fstp qword [esp]
push str._.2fKB
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x10
jmp 0x40c391
push eax
lea edx, [esp + 0xcc]
push 0x413f80
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x78]
push ecx
push esi
push 0x102e
lea eax, [esp + 0xd4]
push edi
mov dword [esp + 0x90], 1
mov dword [esp + 0x9c], eax
call ebx
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
fild dword [eax + 4]
test edx, edx
jge 0x40c3cc
fadd qword [0x413bc0]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jge 0x40c3e0
fadd qword [0x413bc0]
fdivp st(1)
fmul qword [0x413f78]
call fcn.00411560
push eax
lea ecx, [esp + 0xcc]
push str._d__
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0xa0]
push eax
push esi
push 0x102e
lea edx, [esp + 0xd4]
push edi
mov dword [esp + 0xb8], 2
mov dword [esp + 0xc4], edx
call ebx
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffff034
call fcn.00408ae0
lea eax, [esp + 0x50]
push eax
push esi
push 0x102e
lea edx, [esp + 0xd4]
push edi
mov dword [esp + 0x68], 3
mov dword [esp + 0x74], edx
call ebx
push esi
push esi
push 0x1015
push edi
call ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
inc esi
add ecx, 0x1000
cmp esi, eax
mov dword [esp + 0xc], ecx
jl 0x40c269
mov ecx, dword [esp + 0x20]
call fcn.0040b820
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40c4d9
mov esi, dword [esp + 0x14]
cmp esi, 0xffffffff
jle 0x40c4d9
lea ecx, [esp + 0x50]
push ecx
push esi
mov eax, 3
push 0x102b
push edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], eax
call ebx
push 0
push esi
push 0x102a
push edi
call ebx
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [esp + 0x1c]
test esi, esi
mov dword [esp + 0x11c], 0xffffffff
je 0x40c520
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40c520
mov eax, dword [esi]
test eax, eax
je 0x40c507
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x40c517
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10c]
call fcn.00411337
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret