Function at 0x463610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [ebx + 0x2f4]
push esi
push edi
mov dword [esp + 0x14], eax
mov eax, 0x3d003d
mov ecx, 0x19
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
xor esi, esi
lea edx, [esp + 0x18]
mov eax, edi
mov ecx, ebx
mov word [esp + 0x7c], si
call fcn.004622a0
mov edx, 0x47e390
mov eax, edi
mov ecx, ebx
call fcn.004622a0
cmp dword [ebx + 0x34], esi
mov dword [esp + 0x10], esi
jle 0x463721
mov ecx, dword [ebx + 0x38]
mov edx, dword [esp + 0x10]
mov esi, dword [ecx + edx*4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x68]
mov eax, dword [ecx]
mov eax, dword [eax]
push edx
push esi
call eax
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esi + esi*4]
mov eax, dword [edx + ecx*4 + 0x10]
mov ecx, dword [ebx + 0x6c]
push eax
push 0x47e39c
push 0x2000
push ecx
call sub.msvcrt.dll__snwprintf
mov ecx, dword [ebx + 0x6c]
add esp, 0x14
cmp edi, 0xffffffff
jne 0x4636c6
cmp dword [ebx + 0x2b4], 1
jne 0x4636c6
mov esi, dword [ebx + 0x2dc]
push ecx
or eax, edi
call fcn.00466ab0
jmp 0x46370d
cmp dword [ebx + 0x24], 0
je 0x463703
cmp dword [ebx + 0x28], 0
je 0x4636db
push ecx
push edi
call fcn.004607e0
jmp 0x46370a
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4636e0
sub eax, esi
push 0
sar eax, 1
lea edx, [esp + 0x10]
push edx
add eax, eax
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x46370d
push ecx
push edi
call fcn.00460760
add esp, 8
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [ebx + 0x34]
mov dword [esp + 0x10], eax
jl 0x46366a
cmp edi, 0xffffffff
jne 0x463743
cmp dword [ebx + 0x2b4], 1
jne 0x463743
mov esi, dword [ebx + 0x2dc]
lea ecx, [esp + 0x18]
push ecx
or eax, edi
call fcn.00466ab0
jmp 0x46379e
cmp dword [ebx + 0x24], 0
je 0x46378b
cmp dword [ebx + 0x28], 0
je 0x46375c
lea edx, [esp + 0x18]
push edx
push edi
call fcn.004607e0
jmp 0x463796
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x463763
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x10]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x463799
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.00460760
add esp, 8
cmp edi, 0xffffffff
jne 0x4637bc
cmp dword [ebx + 0x2b4], 1
jne 0x4637bc
mov esi, dword [ebx + 0x2dc]
push 0x47e390
or eax, 0xffffffff
call fcn.00466ab0
jmp 0x4637ff
cmp dword [ebx + 0x24], 0
je 0x4637ec
cmp dword [ebx + 0x28], 0
je 0x4637d5
push 0x47e390
push edi
call fcn.004607e0
jmp 0x4637f7
push 0
lea edx, [esp + 0x10]
push edx
push 4
push 0x47e390
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x4637fa
push 0x47e390
push edi
call fcn.00460760
add esp, 8
cmp edi, 0xffffffff
jne 0x463828
cmp dword [ebx + 0x2b4], 1
jne 0x463828
mov esi, dword [ebx + 0x2dc]
push 0x47e390
or eax, 0xffffffff
call fcn.00466ab0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 0x24], 0
je 0x463867
cmp dword [ebx + 0x28], 0
je 0x46384a
push 0x47e390
push edi
call fcn.004607e0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [esp + 0x10]
push eax
push 4
push 0x47e390
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x47e390
push edi
call fcn.00460760
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8