Function at 0x430da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x634], eax
push esi
mov eax, dword [eax]
mov dword [ebp - 0x65c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x664], ecx
push edi
test eax, eax
jne 0x430dee
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x670], 0x430c00
mov dword [ebp - 0x66c], 0x430bb0
mov dword [ebp - 0x63c], 0x446fe0
mov dword [ebp - 0x638], 0x447000
mov dword [ebp - 0x64c], 0x447010
mov dword [ebp - 0x648], 0x447030
call fcn.00447280
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x6b0], 0
push eax
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x6ac], 0
xorps xmm0, xmm0
mov dword [ebp - 0x6a8], 0
push eax
lea edx, [ebp - 0x6b0]
mov dword [ebp - 0x6a4], 0
lea ecx, [ebp - 0x670]
mov dword [ebp - 0x6a0], 0
mov dword [ebp - 0x69c], 0
mov dword [ebp - 0x698], 0
mov dword [ebp - 0x694], 0
movdqu xmmword [ebp - 0x680], xmm0
call fcn.00446cb0
mov edi, eax
add esp, 8
test edi, edi
je 0x430ed1
mov edx, dword [ebp - 0x638]
lea ecx, [ebp - 0x6b0]
call fcn.004449b0
test edi, edi
jne 0x4311d7
xor ecx, ecx
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x658], 0xffffffff
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x630], ecx
cmp dword [ebp - 0x698], ecx
jbe 0x4311b9
mov ebx, dword [ebp - 0x694]
add ebx, 0x1c
lea esp, [esp]
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x658]
push eax
push ecx
lea edx, [ebp - 0x6b0]
lea ecx, [ebp - 0x670]
call fcn.00447040
mov edi, eax
add esp, 0x20
mov dword [ebp - 0x640], edi
test edi, edi
jne 0x4311b9
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.0053e230
mov esi, dword [ebx - 8]
add esp, 0xc
test esi, esi
je 0x4311b4
cmp byte [esi], 0
je 0x4311b4
push edi
push edi
push 0xffffffffffffffff
push esi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 0x104
jae 0x4311b4
push eax
lea eax, [ebp - 0x418]
push eax
push 0xffffffffffffffff
push esi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [ebp - 0x418], di
je 0x431001
xor ecx, ecx
lea eax, [ebp - 0x418]
mov edx, 0x2f
lea edi, [ecx + 0x5c]
cmp dx, word [eax]
jne 0x430fea
mov word [eax], di
inc ecx
lea eax, [ebp - 0x418]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x430fe2
mov edi, dword [ebp - 0x640]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0053e230
mov ecx, dword [ebp - 0x65c]
lea eax, [ebp - 0x418]
add esp, 0xc
push eax
call fcn.0041fb40
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, dword [ebp - 0x664]
test esi, esi
je 0x43107e
cmp word [ebp - 0x210], 0
jne 0x431057
xor ecx, ecx
jmp 0x43106f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431060
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00420490
cmp byte [ebx - 2], 0
je 0x43109b
mov ecx, dword [ebp - 0x634]
lea eax, [ebp - 0x210]
push eax
call fcn.00431210
jmp 0x43117b
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x596370
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00546433
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [ebp - 0x634]
lea eax, [ebp - 0x628]
push eax
call fcn.00431210
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4311aa
mov edi, dword [ebp - 0x644]
lea eax, [ebp - 0x660]
push 0
push eax
mov eax, dword [ebp - 0x654]
add eax, dword [ebp - 0x62c]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x431199
cmp dword [ebp - 0x660], edi
jne 0x431199
cmp byte [ebx], 0
je 0x43116a
lea eax, [ebx - 0x1c]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x431199
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4311aa
mov edi, dword [ebp - 0x640]
mov ecx, dword [ebp - 0x630]
add ebx, 0x20
inc ecx
mov dword [ebp - 0x630], ecx
cmp ecx, dword [ebp - 0x698]
jb 0x430f10
jmp 0x4311b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4311b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4311b9
mov edi, 1
push dword [ebp - 0x62c]
mov esi, dword [ebp - 0x638]
call esi
add esp, 4
lea ecx, [ebp - 0x6b0]
mov edx, esi
call fcn.004449b0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret 8