Function at 0x4c1e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x90
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
mov ebx, dword [esp + 0x98]
cmp dword [ebx + 8], 0
push ebp
push esi
push edi
mov esi, ecx
je 0x4c1e9e
mov edi, ebx
call fcn.004c21c0
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
movzx edx, ax
push 5
push edx
push esi
mov dword [ebx + 4], esi
mov dword [ebx], eax
mov dword [ebx + 8], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea esi, [esp + 0x34]
mov ebp, eax
call fcn.004c1d50
mov eax, dword [esp + 0x34]
test eax, eax
jl 0x4c1eee
cmp eax, 0x7fff
jle 0x4c1ef9
neg eax
and eax, 0xffff
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
fmul qword [esp + 0xb0]
push eax
push 0
push 0
fdiv qword [0x51d0c0]
push 0
push 0
push 1
push 0
push 0
push ecx
push edx
push 0
push 0
push 0
lea esi, [ebx + 0xc]
fadd qword [0x51d0b8]
call fcn.004fd450
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov dword [esi], eax
mov eax, dword [ebx + 8]
push 0x31
push eax
call edi
mov ecx, dword [esi]
mov edx, dword [ebx + 8]
push 1
push ecx
push 0x30
push edx
mov dword [ebx + 0x10], eax
call edi
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x14], eax
mov eax, esi
lea edi, [esp + 0x18]
lea esi, [esp + 0x14]
call fcn.004c1ce0
mov eax, dword [ebx + 8]
lea edx, [esp + 0x58]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
fild dword [esp + 0x18]
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x24]
fstp qword [esp + 0x50]
push ecx
fild dword [esp + 0x20]
push edx
fstp qword [esp + 0x50]
call dword [sym.imp.USER32.dll_GetClientRect]
movsx eax, word [ebp + 0x16]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [esp + 0x50]
fmul qword [0x51d0b0]
fld qword [0x51d0b8]
fadd st(1), st(0)
fxch st(1)
call fcn.004fd450
add eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
movsx ecx, word [ebp + 0x18]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul qword [esp + 0x48]
fmul qword [0x51d0a8]
faddp st(1)
call fcn.004fd450
add eax, dword [esp + 0x28]
mov esi, dword [sym.imp.USER32.dll_ClientToScreen]
lea edx, [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 8]
push edx
push eax
call esi
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x2c]
push ecx
push edx
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x38]
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
push edx
push eax
mov eax, dword [ebx + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, ebp
call fcn.004c1be0
mov edi, eax
mov eax, ebp
mov dword [esp + 0x14], 0
call fcn.004c1bc0
xor ecx, ecx
cmp cx, word [eax]
jae 0x4c2195
mov esi, dword [esp + 0x20]
lea esp, [esp]
cmp dword [esp + 0x14], 0
jne 0x4c209f
mov edx, dword [ebx + 8]
push 5
push edx
jmp 0x4c20a2
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x4c2195
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, dword [edi + 0x14]
je 0x4c20d2
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x4c20b2
jmp 0x4c2195
test esi, esi
je 0x4c2195
movsx eax, word [edi + 0x12]
mov dword [esp + 0x18], eax
push 1
fild dword [esp + 0x1c]
fld qword [esp + 0x4c]
fmul st(1), st(0)
fld qword [0x51d0a8]
fmul st(2), st(0)
fld qword [0x51d0b8]
fadd st(3), st(0)
fxch st(3)
call fcn.004fd450
movsx ecx, word [edi + 0x10]
mov dword [esp + 0x1c], ecx
push eax
fild dword [esp + 0x20]
fld qword [esp + 0x58]
fmul st(1), st(0)
fld qword [0x51d0b0]
fmul st(2), st(0)
fxch st(2)
fadd st(5)
call fcn.004fd450
movsx edx, word [edi + 0xe]
mov dword [esp + 0x20], edx
push eax
fild dword [esp + 0x24]
fmulp st(4)
fxch st(3)
fmulp st(2)
fxch st(1)
fadd st(3)
call fcn.004fd450
push eax
movsx eax, word [edi + 0xc]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmulp st(2)
fmulp st(1)
faddp st(1)
call fcn.004fd450
push eax
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [ebx + 0xc]
push 1
push ecx
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
call fcn.004c1c80
inc dword [esp + 0x14]
mov edi, eax
mov eax, ebp
call fcn.004c1bc0
movzx edx, word [eax]
cmp dword [esp + 0x14], edx
jl 0x4c2090
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e3edb
add esp, 0x90
ret 0x14