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

Disassembly:
push 0xffffffffffffffff
push 0x100fc76c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
mov eax, dword [esp + 0xcc]
mov dl, byte [esp + 3]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, eax
and cl, 1
neg cl
mov ebp, eax
push edi
push 0
mov dword [esp + 0x5c], esi
mov byte [esp + 0x70], dl
sbb ecx, ecx
and ecx, 0x12c
add ecx, 0x190
shr eax, 2
mov dword [esp + 0x34], ecx
and eax, 1
shr ebp, 1
lea ecx, [esp + 0x70]
and ebp, 1
mov dword [esp + 0x38], eax
call fcn.10001fd0
mov edi, dword [esp + 0xd4]
push 1
push 0
lea eax, [esp + 0x1b]
push eax
mov ecx, edi
mov dword [esp + 0xd8], 0
mov byte [esp + 0x1f], 0x2e
call fcn.10001f22
mov ebx, eax
mov eax, dword [0x10100440]
cmp ebx, eax
je 0x10048079
push edi
lea ecx, [esp + 0x60]
push ecx
call fcn.10056330
mov edx, dword [0x10100440]
push edx
push 0
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 1
call fcn.10001e54
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0xd0], 0
call fcn.10001fd0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x18]
add esi, 0x29c
push ecx
mov ecx, esi
call fcn.1004d750
lea edx, [esp + 0x6c]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.1004d6e0
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x38]
push edx
push ecx
push eax
mov dword [esp + 0x44], 0
call fcn.1004dc40
mov eax, dword [esp + 0x44]
add esp, 0xc
test eax, eax
jne 0x10047fd7
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x10047fb8
mov eax, 0x10100444
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x10047fd7
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call fcn.1004a320
push ebx
push 0
lea edx, [esp + 0x84]
push edx
mov ecx, edi
call fcn.10001b28
push eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0xd4], 2
call fcn.100565a0
mov ecx, dword [0x10100440]
push ecx
xor edi, edi
push edi
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 3
call fcn.10001e54
mov eax, dword [esp + 0x60]
cmp eax, edi
je 0x1004803c
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x10048033
cmp al, 0xff
je 0x10048033
dec al
mov byte [ecx], al
jmp 0x1004803c
push ecx
call fcn.1008cc5c
add esp, 4
mov eax, dword [esp + 0x80]
cmp eax, edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov byte [esp + 0xcc], 0
je 0x10048088
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x1004806e
cmp al, 0xff
je 0x1004806e
dec al
mov byte [ecx], al
jmp 0x10048088
push ecx
call fcn.1008cc5c
add esp, 4
jmp 0x10048088
push eax
push 0
push edi
lea ecx, [esp + 0x78]
call fcn.10001e54
xor edi, edi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push edi
lea edx, [esp + 0x48]
push edx
push edi
push 0x4a
mov dword [esp + 0x54], edi
call esi
push edi
push edi
push edi
push 0x4b
call esi
mov eax, dword [esp + 0x70]
cmp eax, edi
jne 0x100480b1
mov eax, 0x10100444
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push edi
mov edx, dword [esp + 0xe0]
push edi
push edi
push edi
push edi
push edi
push eax
push ebp
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
mov ebp, eax
cmp ebp, edi
mov dword [esp + 0x50], ebp
push edi
jne 0x100480f1
mov eax, dword [esp + 0x48]
push edi
push eax
push 0x4b
call esi
mov ecx, dword [esp + 0x70]
cmp ecx, edi
jmp 0x10048162
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push ebp
push esi
mov dword [esp + 0x24], esi
call ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x34], eax
xor eax, eax
mov ecx, 0xd
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x8c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
jne 0x10048185
mov edx, dword [esp + 0x34]
push edx
push esi
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x44]
push 0
push 0
push eax
push 0x4b
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x10048746
mov al, byte [ecx - 1]
test al, al
je 0x1004873c
cmp al, 0xff
je 0x1004873c
dec al
mov byte [ecx - 1], al
jmp 0x10048746
mov esi, dword [esp + 0xb9]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x8c]
and esi, 0xff
and eax, 0xff
mov ebp, esi
sub ebp, eax
inc ebp
lea edi, [ebp*4]
push edi
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
call fcn.10099f75
push edi
mov dword [esp + 0x28], eax
call fcn.10099f75
push edi
mov dword [esp + 0x54], eax
call fcn.10099f75
xor edi, edi
add esp, 0xc
xor ebx, ebx
cmp ebp, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x24], edi
jle 0x1004831f
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x48]
sub ecx, eax
mov esi, eax
mov dword [esp + 0x14], ecx
mov dl, byte [esp + 0x28]
add dl, byte [esp + 0x24]
lea eax, [esp + 0x7c]
push eax
push 1
lea ecx, [esp + 0x1b]
mov byte [esp + 0x1b], dl
mov edx, dword [esp + 0x24]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
movsx eax, byte [esp + 0x13]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
lea ecx, [esp + 0x5c]
push ecx
push eax
push eax
push edx
mov dword [esp + 0x40], edi
mov dword [esi], 0
call dword [sym.imp.GDI32.dll_GetCharABCWidthsA]
test eax, eax
je 0x100482b3
mov eax, dword [esp + 0x5c]
test eax, eax
jge 0x10048288
neg eax
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
sub esp, 8
fstp qword [esp]
call fcn.1009af0b
add esp, 8
call fcn.1009a92c
add edi, eax
mov dword [esi], eax
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x64]
test eax, eax
jge 0x100482b3
neg eax
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
sub esp, 8
fstp qword [esp]
call fcn.1009af0b
fiadd dword [esp + 0x38]
add esp, 8
call fcn.1009a92c
mov edi, eax
test ebx, ebx
je 0x100482e0
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x240]
call fcn.10045a10
lea ecx, [edi + ebx]
cmp ecx, eax
jle 0x100482e0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xd8]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov eax, ebx
shl eax, 0x10
or eax, edx
mov edx, dword [esp + 0x14]
mov dword [ecx + esi], eax
mov eax, dword [esp + 0x54]
add ebx, edi
cmp ebx, eax
mov dword [edx + esi], edi
jle 0x10048307
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x24]
inc eax
add esi, 4
cmp eax, ebp
mov dword [esp + 0x24], eax
jl 0x1004820f
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0x18]
push edi
lea eax, [edx + ecx]
push 0
push eax
mov eax, dword [esp + 0x60]
push eax
call fcn.10055120
mov ebx, eax
test ebx, ebx
je 0x1004870b
push 0x144
call fcn.10099f75
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xcc], 4
je 0x1004838a
push 0
push ebx
push edi
mov ecx, eax
call fcn.10043f20
jmp 0x1004838c
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x80]
lea ebx, [edi + 0x25c]
push edx
mov ecx, ebx
mov byte [esp + 0xd4], 0
mov dword [esp + 0x20], eax
call fcn.10049aa0
mov ecx, dword [esp + 0x18]
call fcn.10044a30
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1004870b
call fcn.10052110
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x3c], eax
call dword [ecx + 0x44]
test eax, eax
jl 0x10048691
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x1c]
push 0xffffff
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
xor ebx, ebx
test ebp, ebp
jle 0x100484b4
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
mov ecx, esi
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esi]
mov dl, byte [esp + 0x28]
mov eax, ecx
and ecx, 0xffff
mov edi, ecx
mov cl, bl
add cl, dl
mov edx, dword [esp + 0x14]
mov byte [esp + 0x13], cl
mov ecx, dword [edx + esi]
mov edx, dword [esp + 0xd8]
sar eax, 0x10
and eax, 0xffff
add ecx, eax
push 0
mov dword [esp + 0x68], ecx
lea ecx, [edi + edx]
push 1
mov dword [esp + 0x70], ecx
lea edx, [esp + 0x1b]
push edx
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [edx + esi]
mov edx, dword [esp + 0x2c]
push 4
push edi
add ecx, eax
push ecx
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
inc ebx
add esi, 4
cmp ebx, ebp
jl 0x10048438
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x68]
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x38]
push eax
call fcn.1008cc5c
push 0x28
call fcn.10099f75
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xcc], 5
je 0x10048540
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xbe]
push edx
mov edx, dword [esp + 0x30]
and ecx, 0xff
push ecx
mov ecx, dword [esp + 0xe4]
inc esi
push esi
push edx
mov edx, dword [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
push edi
mov ecx, eax
call fcn.10051ee0
jmp 0x10048542
xor eax, eax
mov ecx, dword [edi + 0x250]
mov edx, dword [0x1012bb9c]
lea ebx, [edi + 0x24c]
mov dword [esp + 0x24], eax
mov edi, dword [ecx + 4]
cmp edi, edx
mov esi, ecx
mov byte [esp + 0xcc], 0
mov cl, 1
je 0x10048582
cmp eax, dword [edi + 0xc]
setb cl
test cl, cl
mov esi, edi
je 0x1004857b
mov edi, dword [edi]
jmp 0x1004857e
mov edi, dword [edi + 8]
cmp edi, edx
jne 0x1004856b
mov al, byte [ebx + 8]
test al, al
je 0x100485ac
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x28]
push eax
push esi
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
mov byte [esp + 0x27], 1
call fcn.1004ab80
push eax
jmp 0x1004862d
test cl, cl
mov dword [esp + 0x20], esi
je 0x100485f1
lea edx, [esp + 0x14]
push edx
mov ecx, ebx
call fcn.10021610
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax]
jne 0x100485e8
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x28]
push eax
push esi
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
mov byte [esp + 0x27], 1
call fcn.1004ab80
push eax
jmp 0x1004862d
lea ecx, [esp + 0x20]
call fcn.1004d280
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp dword [eax + 0xc], edx
jae 0x1004861e
lea ecx, [esp + 0x13]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
mov byte [esp + 0x27], 1
call fcn.1004ab80
push eax
jmp 0x1004862d
lea ecx, [esp + 0x13]
push ecx
lea edx, [esp + 0x24]
mov byte [esp + 0x17], 0
push edx
lea ecx, [esp + 0x44]
call fcn.1005dfb0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x84]
call fcn.1005dfb0
mov edx, dword [esp + 0x44]
push 0
push 0
push edx
push 0x4b
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [esp + 0x70]
test ecx, ecx
mov esi, dword [esp + 0x24]
je 0x1004868a
mov al, byte [ecx - 1]
test al, al
je 0x10048680
cmp al, 0xff
je 0x10048680
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x10048748
dec ecx
push ecx
call fcn.1008cc5c
add esp, 4
mov eax, esi
jmp 0x10048748
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.1004d320
mov edi, eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebx
call fcn.1004d2e0
mov esi, dword [eax]
mov edx, dword [esp + 0x14]
mov edi, dword [edi]
push edx
lea eax, [esp + 0x30]
push eax
push edi
push esi
mov dword [esp + 0x3c], 0
call fcn.1004dde0
add esp, 0x10
push edi
push esi
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebx
call fcn.10049ce0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004870b
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov esi, ecx
je 0x1004870b
call fcn.10044270
push esi
call fcn.1008cc5c
add esp, 4
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x38]
push eax
call fcn.1008cc5c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.1008cc5c
mov edx, dword [esp + 0x28]
push edx
call fcn.1008cc5c
add esp, 0xc
jmp 0x1004814b
dec ecx
push ecx
call fcn.1008cc5c
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret 0xc