Function at 0x4308d0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1424
call fcn.0044cc00
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x3c
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
call fcn.0041c340
add esp, 4
cmp eax, edi
je 0x430921
mov edx, dword [esp + 0x1438]
mov ecx, dword [esp + 0x143c]
push 0x980
add edx, 0x5dc
push ecx
push edx
push edi
push eax
mov eax, dword [0x694ca8]
push eax
call fcn.00422d70
add esp, 0x18
xor ebx, ebx
mov ebp, 0x69fdc0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x1438]
lea ecx, [edi + 0x47736c]
xor esi, esi
lea eax, [ecx + 0x1004]
cmp dword [eax], edx
je 0x43095a
inc esi
add eax, 4
cmp esi, 8
jl 0x43094d
cmp esi, 8
je 0x430ed9
lea eax, [edi + 0x47836c]
mov dword [esp + 0x28], eax
mov eax, dword [eax]
test eax, eax
jl 0x430ed9
cmp word [0x4772a8], 0
je 0x430ed9
test eax, eax
mov byte [esp + 0x834], 0
mov byte [esp + 0x34], 0
jg 0x4309b9
cmp word [ecx], 0
je 0x430f2a
push ecx
push ebx
push ebp
call fcn.00430f90
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
mov dword [ecx], eax
je 0x430f2a
mov eax, dword [0x477364]
test eax, eax
je 0x4309e0
shl esi, 6
lea edx, [esp + 0x834]
lea esi, [esi + edi + 0x478390]
push esi
push 0x45aaf0
mov dword [esp + 0x34], esi
push edx
jmp 0x4309f9
shl esi, 6
lea eax, [esp + 0x34]
lea esi, [esi + edi + 0x478390]
push esi
push 0x45aaf0
mov dword [esp + 0x34], esi
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
cmp word [0x4772a8], 0x3e
jne 0x430a5a
mov eax, dword [0x694c18]
test eax, eax
je 0x430a26
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x694c18], 0
push 0x4772aa
call fcn.00439b70
add esp, 4
test eax, eax
je 0x430f3f
push 0x453228
push 0x4772aa
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x430f3f
mov ecx, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x20], ebx
cmp dword [ecx], 0
jle 0x430c5e
mov eax, dword [0x477364]
test eax, eax
je 0x430b29
mov edx, dword [ebp]
push edx
call fcn.00405020
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x834]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
cmp edx, 0x7fe
jae 0x430b29
mov eax, dword [ebp]
push eax
call fcn.00405020
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x834]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, edx
and ecx, 3
lea eax, [eax + 0x47836c]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
dec ecx
cmp ebx, ecx
jge 0x430b29
mov edi, 0x477340
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x834]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x143c]
mov ecx, dword [ebp]
push eax
push 0xbff00000
push 0
push 0x3ff00000
push 0
lea edx, [esp + 0x1048]
push ecx
push edx
call fcn.004050b0
add esp, 0x1c
cmp word [esp + 0x1034], 0
je 0x430b80
lea eax, [esp + 0x1034]
lea ecx, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x3c]
push str._s_S
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x430bfc
mov eax, dword [ebp]
cmp eax, 0x3e8
jl 0x430bce
cmp eax, 0xbe8
jg 0x430bce
mov ecx, dword [esp + 0x18]
add ecx, eax
lea esi, [ecx*2 + 0x476b9c]
lea edx, [esi + 2]
push edx
push 9
push esi
call dword [sym.imp.MSVCRT.dll_wcschr]
sub eax, esi
add esp, 8
sar eax, 1
dec eax
lea ecx, [esp + 0x38]
push eax
lea eax, [esp + 0x3c]
push eax
push str._s_.S
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x430bfc
mov edi, 0x45aadc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x47836c]
lea eax, [eax + 0x47836c]
lea ecx, [edx - 1]
cmp ebx, ecx
jge 0x430c45
mov edi, 0x477340
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
add ebp, 4
inc edi
inc ebx
cmp ebx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
jl 0x430a6d
mov al, byte [esp + 0x34]
test al, al
je 0x430ec7
mov al, byte [esp + 0x834]
test al, al
je 0x430d96
mov edi, 0x477350
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x834]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x834]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x477360]
not ecx
dec ecx
test eax, eax
lea edx, [esp + ecx + 0x834]
je 0x430d54
mov cl, byte [esp + 0x834]
xor eax, eax
test cl, cl
lea edx, [esp + 0x834]
je 0x430d01
mov ecx, edx
lea esi, [esp + 0x834]
sub ecx, esi
cmp ecx, 0x800
jge 0x430d01
movsx ecx, byte [edx]
add eax, ecx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x430ce1
mov ecx, edx
lea esi, [esp + 0x834]
sub ecx, esi
add ecx, 3
cmp ecx, 0x800
jge 0x430d54
mov byte [edx], al
xor ecx, ecx
inc edx
mov cl, ah
mov edi, 0x477350
xor eax, eax
mov byte [edx], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x477350
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x430d7c
lea ecx, [esp + 0x834]
push eax
sub edx, ecx
push edx
lea edx, [esp + 0x83c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
jmp 0x430d96
lea eax, [esp + 0x834]
lea ecx, [esp + 0x834]
sub edx, eax
push edx
push ecx
call fcn.00431120
add esp, 8
mov edi, 0x477350
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x477360]
not ecx
dec ecx
test eax, eax
lea edx, [esp + ecx + 0x34]
je 0x430e58
mov cl, byte [esp + 0x34]
xor eax, eax
test cl, cl
lea edx, [esp + 0x34]
je 0x430e08
mov ecx, edx
lea esi, [esp + 0x34]
sub ecx, esi
cmp ecx, 0x800
jge 0x430e08
movsx ecx, byte [edx]
add eax, ecx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x430deb
mov ecx, edx
lea esi, [esp + 0x34]
sub ecx, esi
add ecx, 3
cmp ecx, 0x800
jge 0x430e58
mov byte [edx], al
xor ecx, ecx
inc edx
mov cl, ah
mov edi, 0x477350
xor eax, eax
mov byte [edx], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x477350
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
mov esi, edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
lea eax, [esp + 0x1034]
sub esi, ecx
push esi
push ebx
push edx
push str.type:_s__fields:_d____d_bytes_
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [esp + 0x1450]
add esp, 0x14
test eax, eax
je 0x430e8c
mov eax, dword [eax]
jmp 0x430e8f
or eax, 0xffffffff
push 0
lea ecx, [esp + 0x1038]
push 0
push ecx
push 0
push eax
push 0
push 0x2f4
call fcn.00426440
mov eax, dword [esp + 0x30]
add esp, 0x1c
test eax, eax
je 0x430f1a
push eax
push esi
lea edx, [esp + 0x3c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x430ed9
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
add ebp, 0x258
inc ebx
add edx, 0x912
add edi, 0x1224
cmp ebp, 0x6a1080
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
jl 0x430938
jmp 0x430f4c
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00431120
add esp, 8
jmp 0x430ed9
mov eax, ebx
shl eax, 7
add eax, ebx
lea ecx, [eax + eax*8]
mov dword [ecx*4 + 0x47836c], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1424
ret
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x430f83
lea edx, [esp + 0x1034]
push str.Not_used.
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
push esi
lea eax, [esp + 0x1040]
push esi
push eax
push esi
push 0xffffffffffffffff
push 7
push 0x251
call fcn.00426440
add esp, 0x24
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1424
ret