Function at 0x42a620
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c5878
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4f4970]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4970]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0xac]
mov dword [esp + 0x48], eax
xor eax, eax
push 0x30
push eax
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x59], eax
mov word [esp + 0x5d], ax
mov byte [esp + 0x5f], al
call fcn.0046dea0
mov ax, word [0x4da2d8]
mov edx, dword [0x4da2d4]
mov cl, byte [0x4da2da]
mov word [esp + 0x5c], ax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0xa8]
sar eax, 2
mov byte [esp + 0x5e], cl
mov ecx, dword [esp + 0xac]
lea esi, [eax + eax*4]
lea esi, [esi*8 + 0x38]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xb4]
push esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x8c], eax
call fcn.0046cf6d
push esi
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x3c], ebx
call fcn.0046dea0
mov edi, ebx
mov ecx, 0xe
lea esi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
add ebx, 0x38
mov dword [esp + 0x34], ebx
sar eax, 2
xor esi, esi
add esp, 0x1c
xor ebx, ebx
cmp eax, esi
jbe 0x42a758
cmp ebx, eax
jb 0x42a732
call fcn.0046d2c9
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + ebx*4]
mov edi, dword [esp + 0x18]
add dword [esp + 0x18], 0x28
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x42a732
xor esi, esi
lea ecx, [esp + 0x1c]
call fcn.00409dd0
push str..fd.cfg
lea ecx, [esp + 0x1c]
mov dword [esp + 0x94], esi
call fcn.00409e90
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x9c], 1
call fcn.00426210
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 2
call fcn.00409f30
lea ecx, [esp + 0x28]
call fcn.00409f10
lea ecx, [esp + 0x18]
mov byte [esp + 0x90], 0
call fcn.00409f10
lea ecx, [esp + 0x1c]
call fcn.0040e660
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.00409e10
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], esi
cmp eax, esi
jne 0x42a82d
push esi
push 0x20
push 4
push esi
push 1
push 0xc0000000
lea ecx, [esp + 0x54]
call fcn.0040e660
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
jne 0x42a822
xor eax, eax
mov dword [esp + 0x2c], eax
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
je 0x42a855
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x28]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42a855
cmp dword [esp + 0x24], edi
jne 0x42a855
mov edi, 1
jmp 0x42a857
xor edi, edi
mov eax, dword [esp + 0x20]
push eax
call fcn.0046df1a
mov eax, dword [esp + 0x30]
add esp, 4
cmp eax, esi
je 0x42a877
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x3c]
call fcn.00409f10
lea ecx, [esp + 0x1c]
call fcn.00409f10
mov eax, edi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0046da8a
add esp, 0x80
ret 0x18