Function at 0x4a63e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x5c04b4]
xor eax, esp
mov dword [esp + 0x98], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
lea edi, [esp + 0x74]
mov ecx, 0xc
mov dword [esp + 0x1c], edx
mov esi, str.ERROR_RETRIEVING_COLUMN
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
sub eax, 0
je 0x4a643e
dec eax
je 0x4a6434
mov dword [esp + 0x24], 0x20
jmp 0x4a6446
mov dword [esp + 0x24], 0x2c
jmp 0x4a6446
mov dword [esp + 0x24], 9
cmp dword [edx + 8], 0
mov eax, dword [0x5c6d98]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0
jle 0x4a6823
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
or eax, ecx
je 0x4a6498
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004a68c0
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp ecx, dword [0x5c6d98]
jne 0x4a66c7
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 4]
xor ebx, ebx
add ecx, esi
cmp dword [ecx + 8], ebx
jle 0x4a65fe
mov eax, dword [ecx + 4]
mov esi, dword [eax + ebx*4]
test esi, esi
jne 0x4a64b8
lea esi, [esp + 0x74]
jmp 0x4a64c0
push esi
mov ecx, edi
call fcn.004a6840
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a64c5
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
cmp byte [0x5c6a90], 0
push 0
lea edi, [eax + eax]
mov eax, dword [ecx + 0xc8]
je 0x4a652a
xor ecx, ecx
push ecx
push edi
push esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
push ecx
push 0
push 0
push 0
push eax
call dword [0x5c0268]
mov esi, eax
push esi
call dword [0x5c00a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jns 0x4a6524
or eax, 0xffffffff
jmp 0x4a6545
mov eax, dword [esp + 0x34]
jmp 0x4a6545
lea ecx, [esp + 0x44]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4a6541
or eax, 0xffffffff
jmp 0x4a6545
mov eax, dword [esp + 0x40]
cmp eax, edi
mov edi, dword [esp + 0x14]
jne 0x4a66ac
mov edx, dword [esp + 0x1c]
inc ebx
mov esi, dword [esp + 0x18]
mov eax, dword [edx + 4]
cmp ebx, dword [esi + eax + 8]
jge 0x4a65f0
cmp byte [0x5c6a90], 0
mov eax, dword [edi + 0xc8]
push 0
je 0x4a65c3
xor ecx, ecx
push ecx
push 2
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push 0
push eax
call dword [0x5c0268]
mov esi, eax
push esi
call dword [0x5c00a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jns 0x4a65b9
mov esi, dword [esp + 0x18]
or eax, 0xffffffff
jmp 0x4a65e3
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
jmp 0x4a65e3
lea ecx, [esp + 0x50]
push ecx
push 2
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4a65df
or eax, 0xffffffff
jmp 0x4a65e3
mov eax, dword [esp + 0x4c]
cmp eax, 2
jne 0x4a66ac
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 4]
add ecx, esi
cmp ebx, dword [ecx + 8]
jl 0x4a64a8
cmp byte [0x5c6a90], 0
mov eax, dword [edi + 0xc8]
push 0
je 0x4a665e
xor ecx, ecx
push ecx
push 4
push 0x576628
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push 0
push eax
call dword [0x5c0268]
mov esi, eax
push esi
call dword [0x5c00a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jns 0x4a6652
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, 0xffffffff
jmp 0x4a6680
mov eax, dword [esp + 0x48]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4a6680
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x30]
push ecx
push 4
push 0x576628
push eax
call ebx
test eax, eax
jne 0x4a667c
or eax, 0xffffffff
jmp 0x4a6680
mov eax, dword [esp + 0x2c]
cmp eax, 4
jne 0x4a66ac
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
inc ecx
mov esi, dword [esp + 0x18]
add esi, 0x1c
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], esi
cmp ecx, dword [edx + 8]
jl 0x4a646d
mov ecx, dword [esp + 0x10]
jmp 0x4a66b5
mov ecx, 0xd
mov dword [esp + 0x10], ecx
cmp ecx, dword [0x5c6d98]
je 0x4a6821
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
sub eax, 0
je 0x4a66e9
dec eax
je 0x4a66df
mov dword [esp + 0x20], 0x20
jmp 0x4a66f1
mov dword [esp + 0x20], 0x2c
jmp 0x4a66f1
mov dword [esp + 0x20], 9
cmp byte [0x5c6a90], 0
mov eax, dword [edi + 0xc8]
push 0
je 0x4a6738
mov esi, dword [0x5c0268]
xor ecx, ecx
push ecx
push 2
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x60]
push ecx
push 0
push 0
push 0
push eax
call esi
push eax
call dword [0x5c00a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4a674d
lea ecx, [esp + 0x70]
push ecx
push 2
lea ecx, [esp + 0x2c]
push ecx
push eax
call ebx
mov esi, dword [0x5c0268]
cmp byte [0x5c6a90], 0
mov eax, dword [edi + 0xc8]
push 0
je 0x4a678e
xor ecx, ecx
push ecx
push 0x19
push 0x58a334
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x70]
push ecx
push 0
push 0
push 0
push eax
call esi
push eax
call dword [0x5c00a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4a679d
lea ecx, [esp + 0x6c]
push ecx
push 0x19
push 0x58a334
push eax
call ebx
cmp byte [0x5c6a90], 0
mov eax, dword [edi + 0xc8]
push 0
je 0x4a67f7
xor ecx, ecx
push ecx
push 4
push 0x576628
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x68]
push ecx
push 0
push 0
push 0
push eax
call esi
push eax
call dword [0x5c00a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x74]
push ecx
push 4
push 0x576628
push eax
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0xc
mov eax, ecx
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0xc