Function at 0x40c1ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
cmp dword [esi + 8], ebx
je 0x40c225
call fcn.0040c539
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
movzx eax, word [esi]
push 5
push eax
push edi
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edx, [ebp - 0x94]
mov edi, eax
call fcn.0040c10b
mov eax, dword [ebp - 0x94]
cmp eax, ebx
jl 0x40c26d
cmp eax, 0x7fff
jle 0x40c27a
neg eax
and eax, 0xffff
mov dword [ebp - 0x94], eax
fild dword [ebp - 0x94]
push dword [ebp - 0x84]
push ebx
fmul qword [ebp + 0x10]
push ebx
push ebx
push ebx
fdiv qword [0x5d1228]
push 1
push ebx
push ebx
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push ebx
push ebx
push ebx
fadd qword [0x5d1220]
call fcn.004e5ce0
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
push ebx
push ebx
push 0x31
push dword [esi + 8]
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [esi + 0xc]
mov dword [esi + 0x10], eax
push 0x30
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x48]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_BeginPaint]
push dword [esi + 0xc]
mov dword [ebp - 0x4c], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
lea eax, [ebp - 0x78]
push eax
push 0x34
push str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
push dword [ebp - 0x4c]
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x78]
cdq
push 0x1a
pop ecx
idiv ecx
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x5c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x48]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_EndPaint]
fild dword [ebp - 0x5c]
lea eax, [ebp - 0x6c]
push eax
push dword [esi + 8]
fstp qword [ebp - 0x78]
fild dword [ebp - 0x58]
fstp qword [ebp - 0x80]
call dword [sym.imp.USER32.dll_GetClientRect]
movsx eax, word [edi + 0x16]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fmul qword [ebp - 0x78]
fmul qword [0x5d1218]
fld qword [0x5d1220]
fadd st(1), st(0)
fxch st(1)
call fcn.004e5ce0
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], eax
movsx eax, word [edi + 0x18]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fmul qword [ebp - 0x80]
fmul qword [0x5d1210]
faddp st(1)
call fcn.004e5ce0
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x6c]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x64]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [edi + 8]
lea eax, [ebp - 0x6c]
push dword [ebp - 0x90]
push dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x68]
push 1
push eax
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x6c]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, edi
call fcn.0040c04d
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], eax
mov eax, 0xffff
cmp word [edi + 2], ax
lea eax, [edi + 0x10]
je 0x40c423
lea eax, [edi + 8]
movzx eax, word [eax]
cmp dword [ebp - 0x4c], eax
jge 0x40c528
cmp dword [ebp - 0x4c], ebx
jne 0x40c43b
push 5
push dword [esi + 8]
jmp 0x40c440
push 2
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x50], eax
cmp eax, ebx
je 0x40c528
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [ebp - 0x54]
cmp eax, dword [ecx + 0x14]
je 0x40c474
push 2
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x50], eax
cmp eax, ebx
jne 0x40c451
cmp dword [ebp - 0x50], ebx
je 0x40c528
mov eax, dword [ebp - 0x54]
movsx eax, word [eax + 0x12]
mov dword [ebp - 0x58], eax
push 1
fild dword [ebp - 0x58]
fmul qword [ebp - 0x80]
fld qword [0x5d1210]
fmul st(1), st(0)
fld qword [0x5d1220]
fadd st(2), st(0)
fxch st(2)
call fcn.004e5ce0
push eax
mov eax, dword [ebp - 0x54]
movsx eax, word [eax + 0x10]
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
fmul qword [ebp - 0x78]
fld qword [0x5d1218]
fmul st(1), st(0)
fxch st(1)
fadd st(3)
call fcn.004e5ce0
push eax
mov eax, dword [ebp - 0x54]
movsx eax, word [eax + 0xe]
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
fmul qword [ebp - 0x80]
fmulp st(2)
fxch st(1)
fadd st(2)
call fcn.004e5ce0
push eax
mov eax, dword [ebp - 0x54]
movsx eax, word [eax + 0xc]
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
fmul qword [ebp - 0x78]
fmulp st(1)
faddp st(1)
call fcn.004e5ce0
push eax
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push dword [esi + 0xc]
push 0x30
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x54]
call fcn.0040c0c9
inc dword [ebp - 0x4c]
jmp 0x40c40f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de422
leave
ret 0x10