Function at 0x469a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc650
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x523f10]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push ecx
mov edi, esp
mov dword [ebp - 0x40], esp
mov esi, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], edi
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x469ad5
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, eax
je 0x469b15
test esi, 0xffff0000
jne 0x469b0c
movzx esi, si
push esi
call fcn.004b33b0
test eax, eax
je 0x469b1e
push esi
push eax
mov ecx, edi
call fcn.00424e6b
jmp 0x469b1e
push esi
call fcn.004b9b7a
add esp, 4
push eax
push esi
mov ecx, edi
call fcn.004253ee
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00469850
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
push 0
lea ecx, [ebp - 0x44]
push ecx
push 2
push 0x4ed2cc
push ebx
call edi
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, 1
je 0x469d33
sub eax, 3
je 0x469ca2
push ecx
push str.hex__x_:
lea edx, [ebp - 0x3c]
push 0x14
push edx
call fcn.004bc871
lea eax, [ebp - 0x3c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x469b75
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x44]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x3c]
push eax
push ebx
call edi
cmp dword [ebp + 0xc], 0
jbe 0x469c97
mov edi, 1
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x469acb
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 4], 2
movzx edx, byte [ecx + edi - 1]
push edx
lea eax, [ebp - 0x40]
push str._02x
push eax
call fcn.00422631
add esp, 0xc
cmp edi, dword [ebp + 0xc]
jae 0x469c32
push 0x4ee8a4
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.00424a3a
add esp, 0xc
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00424ef9
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469c32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x40]
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x469c40
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x44]
push ecx
lea edx, [eax + eax]
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469c84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
lea ecx, [edi - 1]
cmp ecx, dword [ebp + 0xc]
jb 0x469ba4
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x44]
push edx
jmp 0x469d5e
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x469cbc
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 4], 1
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x40]
push 0x502070
push eax
call fcn.00422631
mov esi, dword [ebp - 0x40]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x469cf1
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x44]
push ecx
lea edx, [eax + eax]
push edx
push esi
push ebx
call edi
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469d68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x469d68
cmp dword [ebp + 0xc], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
jbe 0x469d45
mov edx, dword [ebp - 0x48]
push edx
jmp 0x469d4a
push 0x4eba54
call fcn.004247eb
push ebx
call fcn.00469850
add esp, 8
push 0
lea eax, [ebp - 0x44]
push eax
push 4
push 0x4ee924
push ebx
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b9212
mov esp, ebp
pop ebp
ret