Function at 0x459030
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa0
cmp dword [ebx + 0x24], 0
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
mov ecx, 0xd
mov esi, str._td_bgcolor_s_nowrap__s
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, 9
mov esi, str._td_bgcolor_s__s
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x4590a0
cmp dword [ebx + 0x28], 0
je 0x459082
mov eax, dword [esp + 0xb0]
push str._tr_
push eax
call fcn.00456ef0
jmp 0x4590b2
mov edx, dword [esp + 0xb0]
push 0
lea ecx, [esp + 0x10]
push ecx
push 8
push str._tr_
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4590b5
mov eax, dword [esp + 0xb0]
push str._tr_
push eax
call fcn.00456e70
add esp, 8
xor edi, edi
cmp dword [ebx + 0x30], edi
jle 0x459247
mov ecx, dword [ebx + 0x34]
mov esi, dword [ecx + edi*4]
mov eax, dword [ebx + 0x44]
lea edx, [esi + esi*4]
cmp dword [eax + edx*4 + 8], 0
je 0x4590dd
lea ecx, [esp + 0x74]
mov dword [esp + 0xc], ecx
jmp 0x4590e5
lea edx, [esp + 0x24]
mov dword [esp + 0xc], edx
or eax, 0xffffffff
lea ecx, [esp + 0x14]
push ecx
push ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push edi
push 5
mov ecx, ebx
mov dword [esp + 0x30], 0
call edx
mov eax, dword [esp + 0x14]
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 + 0x5c]
push 0xff
push eax
call sub.msvcrt.dll__snwprintf
mov eax, dword [ebx + 0x64]
mov edx, dword [ebp]
mov edx, dword [edx]
add esp, 0x18
push eax
push esi
mov ecx, ebp
call edx
mov edx, eax
mov eax, dword [ebx + 0x68]
call fcn.0044e9c0
mov ecx, dword [ebx + 0x68]
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
push esi
push ebp
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx + 0x68]
movzx ecx, word [eax]
test cx, cx
je 0x459172
cmp cx, 0x20
jne 0x4591a6
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x459175
mov ecx, dword [str.nbsp_]
mov dword [eax], ecx
mov edx, dword [0x470b94]
mov dword [eax + 4], edx
mov ecx, dword [0x470b98]
mov dword [eax + 8], ecx
mov dx, word [0x470b9c]
mov word [eax + 0xc], dx
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx + 0x6c]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
call fcn.0044eb00
mov eax, dword [ebx + 0x6c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ebx + 0x64]
lea ecx, [esp + 0x5c]
push ecx
push edx
push 0x4000
push eax
call sub.msvcrt.dll__snwprintf
mov edx, dword [ebx + 0x64]
add esp, 0x20
cmp dword [ebx + 0x24], 0
je 0x45922a
cmp dword [ebx + 0x28], 0
je 0x4591f6
mov ecx, dword [esp + 0xb0]
push edx
push ecx
call fcn.00456ef0
jmp 0x459238
mov eax, edx
lea esi, [eax + 2]
jmp 0x459200
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x459200
sub eax, esi
push 0
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xb8]
add eax, eax
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x45923b
push edx
mov edx, dword [esp + 0xb4]
push edx
call fcn.00456e70
add esp, 8
add edi, 1
cmp edi, dword [ebx + 0x30]
jl 0x4590c0
cmp dword [ebx + 0x24], 0
je 0x45929c
cmp dword [ebx + 0x28], 0
je 0x459274
mov eax, dword [esp + 0xb0]
push 0x470aec
push eax
call fcn.00456ef0
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0xa0
ret 8
mov edx, dword [esp + 0xb0]
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
push 0x470aec
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
add esp, 0xa0
ret 8
mov eax, dword [esp + 0xb0]
push 0x470aec
push eax
call fcn.00456e70
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0xa0
ret 8