Function at 0x4d2134
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
fld qword [ebp + 0x14]
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov dword [ebp - 0x9c], ebx
push edi
mov edi, dword [ebp + 8]
fstp qword [ebp - 0xac]
cmp dword [ebx + 8], esi
je 0x4d216a
call fcn.004d2564
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
movzx eax, word [ebx]
push 5
push eax
push edi
mov dword [ebx + 4], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0xa4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xa0], eax
push ecx
push eax
call fcn.004d277c
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
js 0x4d21c1
cmp ecx, 0x7fff
jle 0x4d21cc
neg ecx
movzx eax, cx
mov dword [ebp - 0xc8], eax
push dword [ebp - 0xb8]
fild dword [ebp - 0xc8]
push esi
push esi
push esi
push esi
push 1
push esi
push esi
push dword [ebp - 0xbc]
push dword [ebp - 0xc0]
fstp qword [ebp - 0xb4]
fld qword [ebp - 0xb4]
fmul qword [ebp - 0xac]
push esi
push esi
push esi
fdiv qword [0x5466e0]
fadd qword [0x543288]
call fcn.004f4030
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x31
push dword [ebx + 8]
mov dword [ebx + 0xc], eax
call esi
push 1
push dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
push 0x30
push dword [ebx + 8]
call esi
lea eax, [ebp - 0x8c]
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_BeginPaint]
push dword [ebx + 0xc]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push esi
mov dword [ebp - 0x98], esi
call ebx
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
lea eax, [ebp - 0xd0]
push eax
push 0x34
push dword [0x56a8a8]
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xd0]
push 0x1a
pop ecx
cdq
idiv ecx
push edi
push dword [ebp - 0x98]
mov esi, eax
call ebx
mov edi, dword [ebp - 0x9c]
lea eax, [ebp - 0x8c]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_EndPaint]
lea eax, [esi + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x98], eax
fild dword [ebp - 0x98]
fstp qword [ebp - 0xb4]
fild dword [ebp - 0x90]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
fstp qword [ebp - 0xac]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [ebp - 0xa0]
movsx eax, word [ebx + 0x16]
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
fstp qword [ebp - 0x94]
fld qword [ebp - 0x94]
fmul qword [ebp - 0xb4]
fmul qword [0x5466d8]
fld qword [0x543288]
fadd st(1), st(0)
fxch st(1)
call fcn.004f4030
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
movsx eax, word [ebx + 0x18]
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
fstp qword [ebp - 0x94]
fld qword [ebp - 0x94]
fmul qword [ebp - 0xac]
fmul qword [0x5466d0]
faddp st(1)
call fcn.004f4030
add eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.USER32.dll_ClientToScreen]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call esi
lea eax, [ebp - 0xc]
push eax
push dword [edi + 8]
call esi
push dword [ebx + 8]
lea eax, [ebp - 0x14]
push dword [ebp - 0xc4]
push dword [ebx + 0xc]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 1
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_MoveWindow]
push ebx
call fcn.004d2684
push ebx
mov dword [ebp - 0x98], eax
call fcn.004d2669
pop ecx
pop ecx
xor ecx, ecx
cmp cx, word [eax]
jae 0x4d2547
mov esi, dword [ebp - 0xa4]
xor ebx, ebx
test ebx, ebx
jne 0x4d23e3
push 5
push dword [edi + 8]
jmp 0x4d23e6
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x4d2547
mov edi, dword [ebp - 0x98]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, dword [edi + 0x14]
je 0x4d2417
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x4d23fc
mov edi, dword [ebp - 0x9c]
test esi, esi
je 0x4d2547
mov eax, dword [ebp - 0x98]
push 1
movsx eax, word [eax + 0x12]
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
fstp qword [ebp - 0x94]
fld qword [ebp - 0x94]
fld qword [ebp - 0xac]
fmul st(1), st(0)
fld qword [0x5466d0]
fmul st(2), st(0)
fld qword [0x543288]
fadd st(3), st(0)
fxch st(3)
call fcn.004f4030
push eax
mov eax, dword [ebp - 0x98]
movsx eax, word [eax + 0x10]
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
fstp qword [ebp - 0x94]
fld qword [ebp - 0x94]
fld qword [ebp - 0xb4]
fmul st(1), st(0)
fld qword [0x5466d8]
fmul st(2), st(0)
fxch st(2)
fadd st(5)
call fcn.004f4030
push eax
mov eax, dword [ebp - 0x98]
movsx eax, word [eax + 0xe]
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
fstp qword [ebp - 0x94]
fld qword [ebp - 0x94]
fmulp st(4)
fxch st(3)
fmulp st(2)
fxch st(1)
fadd st(3)
call fcn.004f4030
push eax
mov eax, dword [ebp - 0x98]
movsx eax, word [eax + 0xc]
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
fstp qword [ebp - 0x94]
fld qword [ebp - 0x94]
fmulp st(2)
fmulp st(1)
faddp st(1)
call fcn.004f4030
push eax
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push dword [edi + 0xc]
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [ebp - 0x98]
call fcn.004d271a
push dword [ebp - 0xa0]
mov dword [ebp - 0x98], eax
inc ebx
call fcn.004d2669
add esp, 0xc
movzx eax, word [eax]
cmp ebx, eax
jl 0x4d23d8
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret 0x14