Function at 0x467390
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x4a7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
sub esp, 0x18
mov dword [ebp - 0x120], 0
mov edi, ecx
mov ecx, esp
mov dword [ebp - 0x128], edi
add edi, 0x2404
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov byte [ecx], 0
call fcn.004034d0
mov eax, dword [0x4d1b34]
test al, 1
jne 0x467412
push 0x30
or eax, 1
push 0
push 0x4afe50
mov dword [0x4d1b34], eax
call fcn.00479b40
add esp, 0xc
call fcn.00464ca0
push 0x48cbd0
call fcn.0046fb6c
add esp, 4
mov ecx, 0x4afe50
call fcn.00465100
mov esi, eax
mov dword [ebp - 0x120], 0
lea eax, [ebp - 0x120]
push eax
push 0
mov ecx, dword [esi]
push esi
call dword [ecx + 0x48]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x120]
lea edx, [ebp - 0x16c]
push 0
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov esi, eax
test esi, esi
jns 0x4674b0
mov ecx, dword [0x4d1b38]
test cl, 1
jne 0x467494
push 0x1f8
or ecx, 1
push 0
push 0x4d1650
mov dword [0x4d1b38], ecx
call fcn.00479b40
add esp, 0xc
call fcn.0045fc90
push 0x48cbe0
call fcn.0046fb6c
add esp, 4
push str.GenerateFontWidthData
push esi
call fcn.00460040
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f27e
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 0x10
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x164], eax
jb 0x4674c6
mov eax, dword [edi]
jmp 0x4674c8
mov eax, edi
push eax
push str.._data_fonts__s.dat
lea eax, [ebp - 0x108]
push 0x80
push eax
call fcn.0046f311
lea eax, [ebp - 0x108]
push 0x497950
push eax
call fcn.004704bc
add esp, 0x18
mov dword [ebp - 0x138], eax
cmp dword [edi + 0x14], 0x10
jb 0x467501
mov edi, dword [edi]
push edi
push str.._data_fonts__s.txt
lea eax, [ebp - 0x108]
push 0x80
push eax
call fcn.0046f311
lea eax, [ebp - 0x108]
push 0x496e7c
push eax
call fcn.004704bc
mov ecx, dword [ebp - 0x128]
xor ebx, ebx
mov edi, eax
mov dword [ebp - 0x144], ebx
mov eax, dword [ebp - 0x16c]
xor esi, esi
add esp, 0x18
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x124], esi
cmp dword [ecx + 0x2830], ebx
jle 0x467835
xor edx, edx
mov dword [ebp - 0x130], edx
cmp dword [ecx + 0x2834], edx
jle 0x467822
lea eax, [ebx + 0x801]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x140], eax
mov ecx, dword [ecx + 0x2428]
mov eax, ecx
imul eax, esi
mov edi, ecx
imul edi, edx
xor edx, edx
mov dword [ebp - 0x12c], edi
lea esi, [ecx + eax]
mov dword [ebp - 0x11c], esi
cmp eax, esi
jge 0x46760d
lea esi, [ecx + edi]
mov ebx, eax
mov ecx, dword [ebp - 0x11c]
imul ebx, dword [ebp - 0x134]
sub ecx, eax
mov dword [ebp - 0x11c], ecx
mov eax, edi
cmp edi, esi
jge 0x4675f8
lea ecx, [ebx + edi*4]
mov edi, dword [ebp - 0x164]
add edi, 3
add ecx, edi
mov edi, dword [ebp - 0x12c]
mov edi, edi
cmp byte [ecx], 0
jbe 0x4675ea
cmp eax, edx
cmovg edx, eax
inc eax
add ecx, 4
cmp eax, esi
jl 0x4675e0
mov ecx, dword [ebp - 0x11c]
add ebx, dword [ebp - 0x134]
dec ecx
mov dword [ebp - 0x11c], ecx
jne 0x4675c4
mov ebx, dword [ebp - 0x144]
mov esi, dword [ebp - 0x140]
sub edx, edi
mov eax, 0
cmovs edx, eax
mov dword [esi], edx
cmp ebx, 0x100
jge 0x4677d4
movsx eax, byte [ebx + 0x4f19e0]
push edx
push eax
push ebx
push str._d__c__d_n
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.0046f311
add esp, 0x18
mov dword [ebp - 0x14c], 0xf
cmp byte [ebp - 0x88], 0
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
jne 0x467676
xor ecx, ecx
jmp 0x467689
lea ecx, [ebp - 0x88]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467680
sub ecx, edx
push ecx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x160]
call fcn.00403610
mov eax, dword [0x4d1afc]
test al, 1
jne 0x4676fc
xorps xmm0, xmm0
or eax, 1
movdqu xmmword [0x4afd00], xmm0
push 0x48cbf0
movdqu xmmword [0x4afd10], xmm0
mov dword [0x4d1afc], eax
mov dword [0x4afd00], 0
mov dword [0x4afd04], 0
mov dword [0x4afd1c], 0xf
mov dword [0x4afd18], 0
mov byte [0x4afd08], 0
call fcn.0046fb6c
add esp, 4
cmp dword [0x4afd00], 0
je 0x467790
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp dword [ebp - 0x14c], 0x10
lea eax, [ebp - 0x160]
cmovae eax, dword [ebp - 0x160]
push eax
movzx eax, word [ebp - 0x10a]
push eax
movzx eax, word [ebp - 0x10c]
push eax
movzx eax, word [ebp - 0x10e]
push eax
movzx eax, word [ebp - 0x110]
push eax
push str.__d:_d:_d:_d____s_n
push dword [0x4afd00]
call fcn.004710c4
add esp, 0x1c
push dword [0x4afd00]
call fcn.004708f7
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x160]
add esp, 4
cmp dword [ebp - 0x14c], 0x10
cmovae eax, dword [ebp - 0x160]
push eax
call edi
push 0x497614
call edi
cmp dword [ebp - 0x14c], 0x10
jb 0x4677a7
push dword [ebp - 0x160]
call fcn.0046fdb4
add esp, 4
lea ecx, [ebp - 0x88]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4677b0
mov edi, dword [ebp - 0x13c]
lea eax, [ebp - 0x88]
push edi
sub ecx, edx
push 1
push ecx
push eax
call fcn.00470b8d
add esp, 0x10
jmp 0x4677da
mov edi, dword [ebp - 0x13c]
push dword [ebp - 0x138]
push 1
push 4
push esi
call fcn.00470b8d
mov edx, dword [ebp - 0x130]
add esi, 4
mov ecx, dword [ebp - 0x128]
inc edx
inc ebx
mov dword [ebp - 0x140], esi
mov esi, dword [ebp - 0x124]
add esp, 0x10
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x130], edx
cmp edx, dword [ecx + 0x2834]
jl 0x467585
inc esi
mov dword [ebp - 0x124], esi
cmp esi, dword [ecx + 0x2830]
jl 0x467562
push dword [ebp - 0x138]
call fcn.00470582
add esp, 4
push edi
call fcn.00470582
mov eax, dword [ebp - 0x120]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f27e
mov esp, ebp
pop ebp
ret