Function at 0x421870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4764d8
push eax
mov eax, 0x18e4
mov dword fs:[0], esp
call fcn.0044c0a0
push ebx
push esi
push edi
mov ecx, 0x191
xor eax, eax
lea edi, [ebp - 0x8e8]
mov dword [ebp - 0x8f0], 0x8b8
mov dword [ebp - 0x6a8], 0x648
rep stosd dword es:[edi], eax
xor ebx, ebx
mov ecx, 0xe
lea edi, [ebp - 0x84]
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
rep stosd dword es:[edi], eax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x38], al
call fcn.00422400
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x8f0]
push ecx
push edx
mov dword [ebp - 4], ebx
call fcn.004217c0
add esp, 8
test al, al
je 0x421aab
cmp dword [ebp - 0x8bc], 1
jne 0x421aab
cmp byte [ebp - 0x84], bl
je 0x421aab
push ebx
call fcn.0044b0cc
cdq
mov dword [ebp - 0x28], eax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x18ee]
mov word [ebp - 0x18f0], bx
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 0x20], al
call fcn.00422400
lea edi, [ebp - 0x84]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x20
ja 0x421996
push 0x489db4
call fcn.0044b1a8
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x20]
push 1
push esi
call fcn.00422910
test al, al
je 0x4219cf
mov ecx, dword [ebp - 0x1c]
push esi
push 0x489db4
push ecx
jmp 0x4219be
push 0x489db0
call fcn.0044b1a8
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x20]
push 1
push esi
call fcn.00422910
test al, al
je 0x4219cf
mov edx, dword [ebp - 0x1c]
push esi
push 0x489db0
push edx
call fcn.00421840
add esp, 0xc
lea ecx, [ebp - 0x20]
push esi
call fcn.004228f0
lea eax, [ebp - 0x84]
test eax, eax
jne 0x4219dd
xor edi, edi
jmp 0x421a12
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0044c0a0
mov edi, esp
push esi
push edi
lea edx, [ebp - 0x84]
push 0xffffffffffffffff
push edx
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x421a1e
mov eax, 0x47ca58
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x8b0]
push edx
push ecx
push edi
push eax
push str._s_s_s_I64u_r_n
lea edx, [ebp - 0x18f0]
push 0x800
push edx
call fcn.0044b1c5
lea eax, [ebp - 0x18f0]
push eax
call fcn.0044b1a8
add esp, 0x24
mov esi, eax
lea ecx, [ebp - 0x38]
push 1
push esi
call fcn.00422910
test al, al
je 0x421a83
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x18f0]
push esi
push ecx
push edx
call fcn.00421840
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], esi
add esp, 0xc
mov word [eax + esi*2], bx
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x421aab
mov al, byte [ecx - 1]
cmp al, bl
je 0x421a9f
cmp al, 0xff
je 0x421a9f
dec al
mov byte [ecx - 1], al
jmp 0x421aab
lea eax, [ecx - 2]
push eax
call fcn.004472d3
add esp, 4
mov cl, byte [ebp + 0xb]
push ebx
mov byte [ebp - 0x20], cl
lea ecx, [ebp - 0x20]
call fcn.00422400
sub esp, 0x10
lea edx, [ebp + 0xb]
mov ecx, esp
mov dword [ebp + 8], esp
push edx
push str.NULanList.ini
mov byte [ebp - 4], 2
call fcn.00421d00
lea eax, [ebp - 0x20]
push eax
call fcn.00423730
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x10]
push ecx
push edx
mov dword [ebp - 0x10], ebx
call fcn.00421b70
add esp, 0x1c
test al, al
je 0x421b34
mov eax, dword [ebp - 0x10]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x421b2a
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x421b13
mov eax, 0x47ca58
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x24]
push ebx
push edx
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00422400
push 1
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00422400
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18fc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret