Function at 0x421d5c
Capabilities:
Get file attributes
Write file on windows

Disassembly:
mov eax, 0x431cc4
call fcn.0042e690
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x421d93
lea esi, [ebx + 4]
push edi
push esi
mov dword [ebp - 0x20], esi
call 0x429d4c
pop ecx
test eax, eax
pop ecx
je 0x421d9a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x421d9a
xor eax, eax
jmp 0x421f8b
mov eax, dword [0x440474]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x210]
mov dword [ebp - 4], edi
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x18], ecx
je 0x421ec9
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 0x4404b0
mov eax, esi
test eax, eax
je 0x421dcf
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0042363f
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x421de7
xor eax, eax
jmp 0x421dea
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0042363f
mov esi, 0x4404a8
mov eax, esi
test eax, eax
je 0x421e02
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0042363f
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0x10]
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 4]
je 0x421e98
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x421e2d
xor eax, eax
jmp 0x421e30
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042363f
mov ebx, 0x4395a8
mov eax, ebx
test eax, eax
je 0x421e48
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042363f
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x421e60
xor eax, eax
jmp 0x421e63
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042363f
mov ebx, 0x44048c
mov eax, ebx
test eax, eax
je 0x421e7b
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042363f
lea ecx, [ebp - 0x14]
call fcn.004232ef
mov eax, dword [esi + 4]
cmp dword [ebp - 0x14], eax
jne 0x421e1f
mov ebx, dword [ebp + 8]
mov esi, 0x44048c
mov eax, esi
test eax, eax
je 0x421ea6
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0042363f
lea ecx, [ebp - 0x18]
call fcn.00423009
mov eax, dword [ebx + 0x210]
cmp dword [ebp - 0x18], eax
jne 0x421dc1
xor edi, edi
push edi
push 0x20
push 4
push edi
push 1
push 0x40000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x421f7c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
add eax, eax
cmp eax, edi
jne 0x421eff
push ebx
call dword [0x4321c4]
jmp 0x421f75
lea esi, [eax + 2]
lea eax, [esi + 2]
push eax
call fcn.0042e662
mov edi, eax
push 2
push 0
lea eax, [edi + esi]
push eax
call fcn.0042e5bc
add esp, 0x10
test edi, edi
je 0x421f75
lea eax, [ebp - 0x14]
push 2
push eax
push edi
mov dword [ebp - 0x14], 0xfeff
call fcn.0042e600
push dword [ebp - 0x10]
lea eax, [edi + 2]
push eax
call dword [0x432340]
add esp, 0x14
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push esi
push edi
push ebx
call dword [0x4322a0]
test eax, eax
je 0x421f6e
push ebx
call dword [0x4321c4]
cmp dword [ebp + 8], esi
jne 0x421f6e
mov dword [ebp - 0x1c], 1
push edi
call fcn.0042e52c
pop ecx
push ebx
call dword [0x432270]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042359b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret