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

Disassembly:
push 0xffffffffffffffff
push 0x57fb68
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0xb4]
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
push 0
push 0
push ecx
lea edx, [esp + 0xb0]
push edx
push 0x50000000
push 0x5e8d68
push str.STATIC
push 0x200
mov ecx, edi
call eax
test eax, eax
jne 0x4cda4c
xor al, al
jmp 0x4ce45c
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0xac]
sub eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0xb0]
sub ebx, dword [esp + 0xa8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x20]
sub ebx, 0xa
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00451120
mov ebp, eax
test ebp, ebp
je 0x4cda9e
mov eax, dword [ebp + 4]
push eax
lea esi, [edi + 0x54]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0045112e
mov eax, dword [esp + 0xb0]
sub eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
sub ecx, dword [esp + 0xa4]
push eax
push ecx
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [edi + 0x64]
call fcn.004513f5
mov edx, dword [ebp + 4]
mov eax, dword [edi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [edi + 0x64]
test eax, eax
je 0x4cdaf9
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x58]
push eax
push ecx
call fcn.0045147a
xor edi, edi
push edi
lea edx, [esp + 0xa8]
push edx
mov ecx, esi
mov dword [esp + 0x38], eax
call fcn.00461cc4
push 0x8000
push 1
push 2
lea ecx, [esp + 0x40]
call fcn.00451567
lea eax, [esp + 0x34]
push eax
mov ecx, esi
mov dword [esp + 0x9c], edi
call fcn.004514cd
mov dword [esp + 0x24], eax
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
mov dword [esp + 0x28], eax
jg 0x4cdb64
mov dword [esp + 0x28], 1
cmp ebx, edi
mov ebp, dword [esp + 0x14]
jle 0x4cdb94
lea esp, [esp]
test edi, edi
je 0x4cdb8c
push edi
push 0
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.00450e37
push edi
push ebp
mov ecx, esi
call fcn.00450a73
add edi, dword [esp + 0x28]
cmp edi, ebx
jl 0x4cdb70
mov eax, 0x66666667
imul ebp
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
xor edi, edi
cmp eax, 1
mov ebx, eax
jg 0x4cdbb3
mov ebx, 1
test ebp, ebp
jle 0x4cdbd9
test edi, edi
je 0x4cdbd3
push 0
push edi
lea edx, [esp + 0x54]
push edx
mov ecx, esi
call fcn.00450e37
push ebp
push edi
mov ecx, esi
call fcn.00450a73
add edi, ebx
cmp edi, ebp
jl 0x4cdbb7
mov eax, dword [esp + 0x24]
push eax
mov ecx, esi
call fcn.004514cd
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x34], vtable.CGdiObject.0
call fcn.00451448
push 0xff00
push 1
push 0
lea ecx, [esp + 0x40]
call fcn.00451567
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov dword [esp + 0x9c], 1
call fcn.004514cd
push 0x1e
push 0xf
lea edx, [esp + 0x54]
push edx
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00450e37
push 2
push 0xf
mov ecx, esi
call fcn.00450a73
push 0xa
push 0x13
mov ecx, esi
call fcn.00450a73
push 0xa
push 0xb
mov ecx, esi
call fcn.00450a73
push 2
push 0xf
mov ecx, esi
call fcn.00450a73
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
add edi, 0xfffffff1
push edi
lea eax, [ebx - 0x28]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.00450e37
push edi
lea ebp, [ebx - 0xc]
push ebp
mov ecx, esi
call fcn.00450a73
mov edx, dword [esp + 0x1c]
add edx, 0xffffffed
push edx
add ebx, 0xffffffec
push ebx
mov ecx, esi
call fcn.00450a73
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff5
push eax
push ebx
mov ecx, esi
call fcn.00450a73
push edi
push ebp
mov ecx, esi
call fcn.00450a73
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004514cd
mov edx, dword [esi]
push 0x8000
mov ecx, esi
mov eax, dword [edx + 0x30]
call eax
push str.Chunk
lea ecx, [esp + 0x2c]
call fcn.0040a190
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push ecx
push eax
mov eax, dword [edx + 0x5c]
push 0xa
push 0x14
mov ecx, esi
mov byte [esp + 0xa8], 2
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x98], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cdd2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Time
lea ecx, [esp + 0x2c]
call fcn.0040a190
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
mov ebx, dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea edx, [esp + 0x4c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x5c]
push ecx
call ebx
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cdd78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Time
lea ecx, [esp + 0x2c]
call fcn.0040a190
mov edx, dword [esp + 0x28]
mov edi, dword [edx - 0xc]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x4c]
mov ebp, dword [esi]
push edi
push edx
mov edx, dword [ebp + 0x5c]
sub eax, 0x14
sub ecx, 0xa
push eax
push ecx
mov ecx, esi
mov byte [esp + 0xa8], 3
call edx
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x98], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cdde0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x34], vtable.CGdiObject.0
call fcn.00451448
push str.Stream_N
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], 0xff
mov dword [esp + 0x6c], 0xff0000
mov dword [esp + 0x70], 0x40ffff
mov dword [esp + 0x74], 0xff40ff
mov dword [esp + 0x78], 0xffff40
mov dword [esp + 0x7c], 0xffffff
xor ebp, ebp
mov dword [esp + 0x28], 0x28
call fcn.0040a190
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x4c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x5c]
push ecx
call ebx
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
add edx, 1
add eax, 0xfffffff0
mov dword [esp + 0x18], edx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cde87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0xa0]
mov ecx, dword [ebx + 0x70]
test ecx, ecx
jle 0x4cdf55
lea esp, [esp]
xor edx, edx
mov eax, ebp
div ecx
mov edi, dword [esi]
mov ecx, dword [esp + edx*4 + 0x64]
mov edx, dword [edi + 0x30]
push ecx
mov ecx, esi
call edx
push 1
mov ecx, esi
call fcn.00450968
call fcn.0045881f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4ce289
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push ebp
lea ecx, [esp + 0x2c]
push str.Stream__d
push ecx
mov dword [esp + 0xa4], 4
call fcn.00409fe0
mov edi, dword [esp + 0x34]
mov eax, dword [edi - 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
add esp, 0xc
push eax
mov eax, dword [esp + 0x28]
push edi
push eax
push 0xa
mov ecx, esi
call edx
add edi, 0xfffffff0
mov dword [esp + 0x98], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4cdf3f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
add dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0x70]
add ebp, 1
cmp ebp, ecx
jl 0x4cdea0
xor edi, edi
xor ebp, ebp
cmp dword [ebx + 0x70], edi
mov dword [esp + 0x24], edi
jle 0x4ce441
jmp 0x4cdf70
cmp edi, dword [ebx + 0x98]
jae 0x4ce293
mov eax, dword [ebx + 0x94]
lea ecx, [edi*4]
add eax, ecx
mov eax, dword [eax]
mov edx, dword [eax + 0x80]
test edx, edx
jle 0x4cdfe0
cmp edi, dword [ebx + 0x98]
jae 0x4ce293
mov eax, dword [ebx + 0x94]
add eax, ecx
mov eax, dword [eax]
lea ecx, [edx - 1]
test ecx, ecx
jl 0x4ce29d
cmp ecx, dword [eax + 0x80]
jge 0x4ce29d
mov edx, dword [eax + 0x7c]
mov eax, dword [edx + ecx*8 + 4]
cmp ebp, eax
lea ecx, [edx + ecx*8]
ja 0x4cdfd4
mov ebp, eax
mov ecx, dword [ecx]
cmp dword [esp + 0x24], ecx
ja 0x4cdfe0
mov dword [esp + 0x24], ecx
add edi, 1
cmp edi, dword [ebx + 0x70]
jl 0x4cdf70
test ebp, ebp
mov dword [esp + 0x18], ebp
jbe 0x4ce441
cmp dword [esp + 0x24], 0
jbe 0x4ce441
lea ecx, [esp + 0x7c]
call fcn.004cd0a0
mov eax, dword [ebx + 0x70]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0xa0], 5
call fcn.004cd0c0
mov ebp, dword [esp + 0x84]
xor edi, edi
test ebp, ebp
jle 0x4ce075
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], eax
lea ecx, [ecx]
test edi, edi
jl 0x4ce29d
cmp edi, ebp
jge 0x4ce29d
mov eax, dword [esp + edi*4 + 0x64]
push eax
push 2
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ecx, dword [esp + 0x28]
push eax
call fcn.004513f5
add dword [esp + 0x28], 8
add edi, 1
cmp edi, ebp
jl 0x4ce040
lea ecx, [esp + 0x64]
call fcn.004cd350
mov ecx, dword [ebx + 0x70]
or edi, 0xffffffff
push edi
push ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0xa0], 6
call fcn.00491960
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
xor eax, eax
test ebp, ebp
jle 0x4ce0c3
test eax, eax
jl 0x4ce29d
cmp eax, edx
jge 0x4ce29d
mov dword [ecx + eax*8], edi
mov dword [ecx + eax*8 + 4], edi
add eax, 1
cmp eax, ebp
jl 0x4ce0a5
mov ebp, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x18]
lea ecx, [ebp + 0x6c]
push edi
call fcn.004c8620
mov eax, dword [ebp + 0x70]
lea edx, [edi*4]
push edx
push 0
push eax
call fcn.004727f0
mov eax, dword [ebx + 0x70]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044ff68
mov ecx, dword [ebx + 0x70]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push eax
mov dword [esp + 0x44], eax
call fcn.004727f0
add esp, 0x1c
mov dword [esp + 0x40], 0
mov eax, SysReAllocString
xor ebp, ebp
or edi, 0xffffffff
cmp dword [ebx + 0x70], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
jle 0x4ce33c
jmp 0x4ce140
cmp ebp, dword [ebx + 0x98]
mov eax, dword [esp + 0x28]
lea edx, [ebp*4]
mov ecx, dword [edx + eax]
jae 0x4ce293
mov eax, dword [ebx + 0x94]
add eax, edx
mov eax, dword [eax]
cmp ecx, dword [eax + 0x80]
jge 0x4ce1b3
cmp ebp, dword [ebx + 0x98]
jae 0x4ce293
mov eax, dword [ebx + 0x94]
add eax, edx
test ecx, ecx
mov eax, dword [eax]
jl 0x4ce29d
cmp ecx, dword [eax + 0x80]
jge 0x4ce29d
mov edx, dword [eax + 0x7c]
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x34]
cmp dword [eax], ecx
jae 0x4ce1b3
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov edi, ebp
add ebp, 1
cmp ebp, dword [ebx + 0x70]
jl 0x4ce140
cmp edi, 0xffffffff
je 0x4ce33c
mov ecx, dword [esp + 0x34]
fild dword [esp + 0x34]
test ecx, ecx
jge 0x4ce1d6
fadd qword [0x5a2320]
mov edx, dword [esp + 0x24]
fimul dword [esp + 0x14]
test edx, edx
fild dword [esp + 0x24]
jge 0x4ce1ec
fadd qword [0x5a2320]
fdivp st(1)
call fcn.00472660
fild dword [esp + 0x1c]
fild dword [esp + 0x38]
mov ebp, eax
mov eax, dword [esp + 0x38]
test eax, eax
jge 0x4ce20b
fadd qword [0x5a2320]
mov ecx, dword [esp + 0x18]
fmul st(1)
test ecx, ecx
fild dword [esp + 0x18]
jge 0x4ce21f
fadd qword [0x5a2320]
fdivp st(1)
fsubp st(1)
call fcn.00472660
test edi, edi
mov ebx, eax
jl 0x4ce29d
cmp edi, dword [esp + 0x6c]
jge 0x4ce29d
mov eax, dword [esp + 0x68]
cmp dword [eax + edi*8], ebp
jne 0x4ce247
cmp dword [eax + edi*8 + 4], ebx
je 0x4ce2db
cmp edi, dword [esp + 0x84]
jge 0x4ce29d
mov edx, dword [esp + 0x80]
lea eax, [edx + edi*8]
push eax
mov ecx, esi
call fcn.004514cd
mov ecx, dword [esp + 0x68]
cmp dword [ecx + edi*8], 0xffffffff
mov dword [esp + 0x2c], eax
jne 0x4ce2a2
mov edx, ecx
cmp dword [edx + edi*8 + 4], 0xffffffff
jne 0x4ce2a2
push ebx
push ebp
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
call fcn.00450e37
jmp 0x4ce2c4
push 0x80004005
call fcn.0040a460
push 0x80070057
call fcn.0040a460
call fcn.00457a83
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx + edi*8]
mov ecx, dword [ecx + edi*8 + 4]
push ecx
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call fcn.00450e37
push ebx
push ebp
mov ecx, esi
call fcn.00450a73
mov edx, dword [esp + 0x2c]
push edx
mov ecx, esi
call fcn.004514cd
mov eax, dword [esp + 0x68]
mov dword [eax + edi*8], ebp
mov dword [eax + edi*8 + 4], ebx
mov ebx, dword [esp + 0x38]
mov eax, ebx
sub eax, dword [esp + 0x40]
cdq
xor eax, edx
sub eax, edx
test ebp, ebp
jl 0x4ce31c
cmp ebp, dword [esp + 0x14]
jge 0x4ce31c
mov ecx, dword [esp + 0x20]
add ecx, 0x6c
cmp ebp, dword [ecx + 8]
jge 0x4ce29d
mov edx, dword [ecx + 4]
cmp dword [edx + ebp*4], eax
jle 0x4ce312
cmp ebp, dword [ecx + 8]
jge 0x4ce29d
mov eax, edx
mov eax, dword [eax + ebp*4]
cmp ebp, dword [ecx + 8]
jge 0x4ce29d
mov ecx, edx
mov dword [ecx + ebp*4], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
add dword [eax + edi*4], 1
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x3c], edx
jmp 0x4ce120
push 0xff
push 1
push 0
lea ecx, [esp + 0x58]
call fcn.00451567
push 0xff00
push 1
push 0
lea ecx, [esp + 0x50]
mov byte [esp + 0xa4], 7
call fcn.00451567
xor edi, edi
cmp dword [esp + 0x14], edi
mov byte [esp + 0x98], 8
jle 0x4ce3e0
mov ebx, dword [esp + 0x1c]
test edi, edi
jl 0x4ce29d
mov eax, dword [esp + 0x20]
add eax, 0x6c
cmp edi, dword [eax + 8]
jge 0x4ce29d
mov eax, dword [eax + 4]
cmp dword [eax + edi*4], 0x3e8
lea eax, [eax + edi*4]
lea eax, [esp + 0x4c]
jge 0x4ce3ab
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.004514cd
push ebx
push edi
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
mov ebp, eax
call fcn.00450e37
lea edx, [ebx + 0xa]
push edx
push edi
mov ecx, esi
call fcn.00450a73
push ebp
mov ecx, esi
call fcn.004514cd
add edi, 1
cmp edi, dword [esp + 0x14]
jl 0x4ce37c
mov eax, dword [esp + 0x28]
push eax
call fcn.0044ff63
mov esi, vtable.CGdiObject.0
add esp, 4
lea ecx, [esp + 0x44]
mov byte [esp + 0x98], 7
mov dword [esp + 0x44], esi
call fcn.00451448
lea ecx, [esp + 0x4c]
mov byte [esp + 0x98], 6
mov dword [esp + 0x4c], esi
call fcn.00451448
lea ecx, [esp + 0x64]
mov byte [esp + 0x98], 5
call fcn.004cd370
lea ecx, [esp + 0x7c]
mov dword [esp + 0x98], 0xffffffff
call fcn.004cd310
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4ce44c
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x58]
push eax
push edx
call fcn.0045147a
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x18