Function at 0x458650
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x8a04
call fcn.0046e9b0
push ebx
push ebp
mov ebp, dword [esp + 0x8a1c]
push edi
xor edi, edi
push 0x1fc
lea eax, [esp + 0x216]
push edi
push eax
mov ebx, ecx
mov word [esp + 0x21c], di
call sub.msvcrt.dll_memset
push 0x1fc
lea ecx, [esp + 0x622]
push edi
push ecx
mov word [esp + 0x628], di
call sub.msvcrt.dll_memset
push 0x1fc
lea edx, [esp + 0x42e]
push edi
push edx
mov word [esp + 0x434], di
call sub.msvcrt.dll_memset
add esp, 0x24
cmp ebx, 0xffffffff
je 0x45870b
mov eax, ebx
shr eax, 0x10
movzx ecx, al
push ecx
movzx edx, bh
push edx
movzx eax, bl
push eax
push str._2.2X_2.2X_2.2X
lea ecx, [esp + 0x820]
push 0xff
push ecx
call sub.msvcrt.dll__snwprintf
lea edx, [esp + 0x828]
push edx
push str._bgcolor__s_
lea eax, [esp + 0x230]
push 0xff
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x28
mov eax, dword [esp + 0x8a24]
cmp eax, 0xffffffff
je 0x458787
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
push edx
movzx ecx, ah
push ecx
movzx edx, al
push edx
push str._2.2X_2.2X_2.2X
lea eax, [esp + 0x820]
push 0xff
push eax
call sub.msvcrt.dll__snwprintf
lea ecx, [esp + 0x828]
push ecx
push str._font_color__s__
lea edx, [esp + 0x630]
push 0xff
push edx
call sub.msvcrt.dll__snwprintf
add esp, 0x28
xor eax, eax
jmp 0x458770
movzx ecx, word [eax + str.__font_]
mov word [esp + eax + 0x410], cx
add eax, 2
cmp cx, di
jne 0x458770
lea eax, [esp + 0x210]
push eax
push str._table_border_1__cellpadding_5___tr_s__r_n
lea ecx, [esp + 0xa18]
push 0x3fff
push ecx
call sub.msvcrt.dll__snwprintf
mov eax, dword [esp + 0x8a24]
add esp, 0x10
cmp dword [eax + 0x24], edi
je 0x458818
cmp dword [eax + 0x28], edi
je 0x4587d1
mov ebx, dword [esp + 0x8a18]
lea edx, [esp + 0xa10]
push edx
push ebx
call fcn.00456ef0
jmp 0x458834
lea eax, [esp + 0xa10]
lea edx, [eax + 2]
jmp 0x4587e0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4587e0
sub eax, edx
push edi
sar eax, 1
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x8a20]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0xa1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [esp + 0x8a18]
jmp 0x458837
mov eax, dword [esp + 0x8a18]
lea edx, [esp + 0xa10]
push edx
push eax
call fcn.00456e70
mov ebx, dword [esp + 0x8a20]
add esp, 8
cmp ebp, edi
jle 0x458938
push esi
mov esi, dword [esp + 0x8a20]
add esi, 4
lea ebx, [ebx]
push 0x1fc
lea ecx, [esp + 0x1a]
push edi
push ecx
mov word [esp + 0x20], di
call sub.msvcrt.dll_memset
mov eax, dword [esi]
add esp, 0xc
cmp word [eax], di
je 0x458889
push eax
push str._width__s_
lea edx, [esp + 0x1c]
push 0xff
push edx
call sub.msvcrt.dll__snwprintf
add esp, 0x10
jmp 0x45888e
mov word [esp + 0x14], di
mov ecx, dword [esi - 4]
lea eax, [esp + 0x414]
push eax
push ecx
lea edx, [esp + 0x61c]
push edx
lea eax, [esp + 0x20]
push eax
push str._th_s__s_s_s_r_n
lea ecx, [esp + 0xa28]
push 0x3fff
push ecx
call sub.msvcrt.dll__snwprintf
mov eax, dword [esp + 0x8a34]
add esp, 0x1c
cmp dword [eax + 0x24], edi
je 0x45891a
cmp dword [eax + 0x28], edi
je 0x4588e2
lea edx, [esp + 0xa14]
push edx
push ebx
call fcn.00456ef0
jmp 0x458928
lea eax, [esp + 0xa14]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4588f0
sub eax, edx
push edi
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0xa20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x45892b
lea ecx, [esp + 0xa14]
push ecx
push ebx
call fcn.00456e70
add esp, 8
add esi, 8
sub ebp, 1
jne 0x458850
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x8a04
ret 0x14