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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
mov ebx, edx
xor ebp, ebp
cmp ebx, ebp
push esi
mov dword [esp + 0x38], ebx
mov esi, ecx
je 0x47cbee
cmp byte [ebx], 0
je 0x47cbee
mov eax, dword [esp + 0xbc]
cmp eax, ebp
je 0x47cbee
cmp byte [eax], 0
je 0x47cbee
mov ecx, dword [esp + 0xb4]
push edi
call fcn.00435dc0
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0xb8], eax
call fcn.00435dc0
mov edi, dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0xbc], eax
cmp dword [esp + 0xd0], ebp
mov eax, dword [esp + 0xd4]
je 0x47c000
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call edi
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
jmp 0x47c05e
cmp eax, 2
jne 0x47c023
push esi
call dword [sym.imp.GDI32.dll_GetTextColor]
push esi
mov dword [esp + 0xdc], eax
call dword [sym.imp.GDI32.dll_GetBkColor]
mov dword [esp + 0xdc], eax
jmp 0x47c065
cmp eax, 1
jne 0x47c03d
mov eax, dword [esp + 0xd8]
push eax
push esi
call edi
mov ecx, dword [esp + 0xdc]
push ecx
jmp 0x47c05e
mov edx, dword [esp + 0xb8]
mov eax, dword [edx*4 + 0x5c8f18]
push eax
push esi
call edi
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx*4 + 0x5c8f18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xbc]
xor eax, eax
cmp ecx, 2
mov ecx, dword [esp + 0xb8]
sete al
mov dword [esp + 0x70], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x68], ebp
lea eax, [eax + eax + 4]
mov dword [esp + 0x30], eax
cmp dword [0x5c00ec], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x98], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], ebp
jne 0x47c0dc
cmp dword [esp + 0xe8], ebp
mov dword [esp + 0x88], ebp
je 0x47c0e7
mov dword [esp + 0x88], 1
mov eax, dword [0x5f6594]
cmp eax, ebp
mov dword [esp + 0x90], eax
mov dword [esp + 0x78], 0xffffffff
je 0x47c111
mov edx, dword [esp + 0xcc]
mov ecx, esi
call fcn.0048fb50
mov dword [esp + 0x78], eax
mov ecx, esi
call fcn.00510450
xor edi, edi
xor ebp, ebp
mov eax, ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], ebp
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47c130
mov edx, dword [esp + 0xac]
sub eax, ecx
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xb4]
sub eax, edx
mov dword [esp + 0x80], eax
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xa4]
add edx, eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0xe0], 2
mov dword [esp + 0x28], edx
jne 0x47c22f
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x47c1bd
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
jmp 0x47c1de
mov eax, dword [esp + 0xd4]
test eax, eax
je 0x47c1d2
mov eax, dword [esp + 0xdc]
push eax
jmp 0x47c1de
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx*4 + 0x5c8f18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0
push 0
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x30]
push 0x5a4bec
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x40]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0xbc]
push ecx
push edx
push esi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x8c], eax
cmp edi, dword [esp + 0x94]
jge 0x47c557
mov eax, dword [esp + 0x88]
test eax, eax
je 0x47c318
mov edx, edi
mov ecx, ebx
call fcn.0055a010
test eax, eax
jg 0x47c277
cmp eax, 0xffffffff
je 0x47c277
cmp eax, 0xfffffffe
jne 0x47c314
mov dword [esp + 0x8c], 1
mov edx, dword [esp + 0x18]
cmp edx, 0xffffffff
jne 0x47c291
mov edx, ebp
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47cad1
cmp ebp, edx
mov dword [esp + 0x10], 0
jle 0x47c7b0
sub ebp, edx
mov eax, ebp
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
jle 0x47c7b0
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x47c595
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
mov ecx, ebx
call fcn.0055ad60
test eax, eax
je 0x47c591
mov edx, dword [esp + 0x18]
lea ecx, [edx + ebx]
mov edx, dword [esp + 0x14]
call fcn.005585f0
mov edi, eax
test edi, edi
je 0x47c591
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x14], eax
jmp 0x47c595
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x90]
test eax, eax
je 0x47c343
push edi
push ebx
call fcn.005946b3
add esp, 8
cmp eax, 1
je 0x47c282
cmp eax, 2
je 0x47c282
mov edx, dword [esp + 0x18]
movzx eax, byte [edi + ebx]
lea ecx, [edi + ebx]
add eax, 0xfffffffe
cmp eax, 0x1d
ja case.0x47c35d.4
movzx eax, byte [eax + 0x47cc18]
jmp dword [eax*4 + 0x47cbfc]
test byte [esp + 0xe4], 4
jne case.0x47c35d.4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47c387
mov dword [esp + 0x34], 1
jmp case.0x47c35d.4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x47c399
mov dword [esp + 0x10], 1
mov ebp, edi
mov eax, dword [esp + 0x5c]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x5c], ecx
jmp 0x47cad1
test byte [esp + 0xe4], 4
jne case.0x47c35d.4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47c3d0
mov dword [esp + 0x34], 1
jmp case.0x47c35d.4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x47c3e2
mov dword [esp + 0x10], 1
mov ebp, edi
mov ecx, dword [esp + 0x44]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x44], eax
jmp 0x47cad1
test byte [esp + 0xe4], 4
jne case.0x47c35d.4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47c419
mov dword [esp + 0x34], 1
jmp case.0x47c35d.4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x47c42b
mov dword [esp + 0x10], 1
mov ebp, edi
mov eax, dword [esp + 0x64]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x64], ecx
jmp 0x47cad1
test byte [esp + 0xe4], 4
jne case.0x47c35d.4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47c462
mov dword [esp + 0x34], 1
jmp case.0x47c35d.4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x47c474
mov dword [esp + 0x10], 1
mov ebp, edi
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x70]
push edx
push eax
lea edx, [esp + 0xc4]
push edx
lea edx, [esp + 0xc4]
call fcn.005101c0
mov edx, dword [esp + 0x18]
add edi, eax
mov dword [esp + 0x38], edi
jmp 0x47cad1
test byte [esp + 0xe4], 4
jne case.0x47c35d.4
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, eax
je 0x47c4c6
mov dword [esp + 0x34], 1
jmp case.0x47c35d.4
cmp dword [esp + 0x10], eax
jne 0x47c4d6
mov dword [esp + 0x10], 1
mov ebp, edi
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x64], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
jmp 0x47cad1
test byte [esp + 0xe4], 4
jne case.0x47c35d.4
mov eax, dword [esp + 0xec]
test eax, eax
je case.0x47c35d.4
cmp dword [eax + 0x71c], 9
jne case.0x47c35d.4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47c544
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x47c54e
mov dword [esp + 0x34], 1
jmp case.0x47c35d.4
mov dword [esp + 0x10], 1
mov ebp, edi
inc dword [esp + 0x2c]
jmp 0x47cad1
cmp ebp, edx
jle 0x47c561
mov edi, ebp
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x47cb12
cmp edi, edx
jg 0x47c57d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47cb12
mov eax, 1
mov dword [esp + 0x6c], eax
mov ebp, edi
mov dword [esp + 0x10], eax
jmp case.0x47c35d.4
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x7c], ebx
je 0x47c5d6
push 1
push str.drawline_fill
push ebx
push eax
mov edx, edi
mov ecx, esi
call fcn.0048cff0
mov eax, dword [esp + 0x14]
push ebx
push str.drawline_start
push ebx
push eax
mov edx, edi
mov ecx, esi
call fcn.0048cff0
cmp eax, ebx
jle 0x47c5d6
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x14], eax
mov ecx, esi
call fcn.00510450
test edi, edi
push 0
mov ebp, eax
push 0
je 0x47c5f2
mov ecx, dword [esp + 0x1c]
push 2
push ecx
mov edx, edi
jmp 0x47c603
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
push 0
push eax
add edx, ecx
mov ecx, esi
call fcn.00510470
mov ecx, dword [esp + 0x1c]
mov edx, ecx
sub edx, ebp
add eax, edx
mov edx, dword [esp + 0xb0]
cmp eax, edx
mov dword [esp + 0x24], eax
jle 0x47c631
mov eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x6c], 1
cmp ecx, eax
jge 0x47c754
mov eax, dword [esp + 0x68]
test eax, eax
je 0x47c709
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x47c709
mov eax, dword [esp + 0xd4]
test eax, eax
je 0x47c678
mov eax, dword [esp + 0xdc]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0xd8]
push ecx
jmp 0x47c697
mov edx, dword [esp + 0x40]
mov eax, dword [edx*4 + 0x5c8f18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx*4 + 0x5c8f18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
test edi, edi
mov ebp, eax
push 0
je 0x47c6d4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push ebp
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x47c750
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
push edx
add eax, ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push ebp
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x47c750
test edi, edi
mov eax, dword [esp + 0x14]
push 0
push eax
je 0x47c72e
mov eax, dword [esp + 0x38]
push edi
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push eax
push edx
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
jmp 0x47c750
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
add edx, eax
mov eax, dword [esp + 0x38]
push edx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push eax
push edx
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x7c]
test ebp, ebp
mov dword [esp + 0x1c], eax
je 0x47c7a3
mov eax, dword [esp + 0x14]
sub ebx, eax
test ebx, ebx
lea edi, [edi + eax*2]
mov ecx, esi
push 0
jle 0x47c791
push str.drawline_next
push 1
push ebx
mov edx, edi
call fcn.0048cff0
test eax, eax
jg 0x47c5d2
mov dword [esp + 0x14], ebx
jmp 0x47c5d6
push str.drawline_end
push 2
push 0
xor edx, edx
call fcn.0048cff0
mov edi, ebp
test edi, edi
je 0x47c7b0
push edi
call fcn.0059112a
add esp, 4
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x47c7d4
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xe
call edi
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
call edi
push eax
jmp 0x47c82f
mov edi, dword [esp + 0xd4]
test edi, edi
je 0x47c7f6
mov eax, dword [esp + 0xb8]
cmp eax, dword [esp + 0x70]
jne 0x47c7f6
mov ecx, dword [esp + 0xd8]
push ecx
jmp 0x47c805
mov edx, dword [esp + 0xb8]
mov eax, dword [edx*4 + 0x5c8f18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
test edi, edi
mov eax, dword [esp + 0xbc]
je 0x47c827
cmp eax, dword [esp + 0x40]
jne 0x47c827
mov ecx, dword [esp + 0xdc]
push ecx
jmp 0x47c82f
mov edx, dword [eax*4 + 0x5c8f18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x47c9f1
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x24], eax
jle 0x47c87c
mov ebx, dword [esp + 0xec]
mov ebp, ecx
lea esp, [esp]
lea ecx, [esp + 0x98]
push ecx
push eax
mov edx, 2
mov ecx, ebx
call fcn.005103f0
dec ebp
mov dword [esp + 0x24], eax
jne 0x47c860
cmp eax, edi
mov ebx, dword [sym.imp.GDI32.dll_ExtTextOutA]
mov dword [esp + 0x2c], 0
jge 0x47c8ca
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x2c]
push 0
push 0x5a4bec
mov dword [esp + 0x64], edx
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x40]
push edx
push ecx
push eax
mov dword [esp + 0x70], eax
push esi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], edi
call ebx
mov eax, dword [esp + 0x68]
test eax, eax
je 0x47c944
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x47c944
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov eax, dword [eax*4 + 0x5c8f18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5c9d4c]
mov edi, eax
call fcn.00435dc0
mov ecx, dword [eax*4 + 0x5c8f18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0x5a4bec
lea edx, [esp + 0x28]
push edx
push 6
mov ebp, eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push esi
call ebx
push edi
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebp
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x47c964
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0x5a4bec
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push esi
call ebx
mov eax, dword [esp + 0x74]
test eax, eax
je 0x47c9e9
mov eax, dword [esp + 0x68]
test eax, eax
je 0x47c989
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov eax, dword [eax*4 + 0x5c8f18]
push eax
jmp 0x47c998
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx*4 + 0x5c8f18]
push edx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, eax
test edi, edi
je 0x47c9e9
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edi
push esi
call ebx
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esp + 0x28]
push 0
add eax, 0xfffffffe
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add edx, 0xfffffffe
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_LineTo]
push ebp
push esi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x5c]
cmp dword [esp + 0x84], edi
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x68], edx
jne 0x47ca14
cmp dword [esp + 0x74], ebx
je 0x47cabf
mov eax, dword [esp + 0x48]
test eax, eax
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x84], edi
mov dword [esp + 0x74], ebx
je 0x47ca31
push eax
push esi
call ebp
mov eax, dword [esp + 0x60]
test eax, eax
je 0x47ca40
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
mov eax, dword [esp + 0xc8]
je 0x47ca64
xor ecx, ecx
cmp eax, 0x190
setne cl
dec ecx
and ecx, 0x12c
add ecx, 0x190
mov eax, ecx
mov edx, dword [esp + 0xc0]
mov ecx, dword [esp + 0xcc]
push edx
push 0
mov edx, dword [esp + 0xcc]
push 0
push 0
push 0
push ecx
push 0
push ebx
push 0
push eax
push 0
push 0
push 0
neg edx
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
test eax, eax
mov dword [esp + 0x60], eax
je 0x47caa3
push eax
jmp 0x47cab1
mov eax, dword [esp + 0xec]
mov ecx, dword [eax + 0x98c]
push ecx
push esi
call ebp
mov ecx, esi
mov dword [esp + 0x48], eax
call fcn.00510450
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x18], edx
jne 0x47cae2
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x47cafe
mov edi, dword [esp + 0x38]
jmp 0x47c557
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
or edx, 0xffffffff
mov dword [esp + 0x34], 0
mov dword [esp + 0x18], edx
jmp 0x47c240
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x38], eax
mov edi, eax
jmp 0x47c240
cmp dword [esp + 0xe0], 2
pop edi
jne 0x47cbaa
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x47cb37
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
jmp 0x47cb58
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x47cb4c
mov edx, dword [esp + 0xd8]
push edx
jmp 0x47cb58
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax*4 + 0x5c8f18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x24]
push 0
push 0
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0xb4]
push 0x5a4bec
mov dword [esp + 0x5c], eax
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x3c]
push edx
push ecx
push eax
push esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x74]
test eax, eax
jl 0x47cbbb
push eax
call fcn.00594506
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x47cbcd
mov ecx, eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x47cbde
mov edx, eax
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x7c]
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 0x50
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret 0x50