Function at 0x464820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d42f0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x518f10]
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.004a35be
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x464875
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 0x4648b5
test esi, 0xffff0000
jne 0x4648ac
movzx esi, si
push esi
call fcn.004ab4f3
test eax, eax
je 0x4648be
push esi
push eax
mov ecx, edi
call fcn.00424cac
jmp 0x4648be
push esi
call fcn.004b1cba
add esp, 4
push eax
push esi
mov ecx, edi
call fcn.0042522f
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004645f0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
push 0
lea ecx, [ebp - 0x44]
push ecx
push 2
push 0x4e51bc
push ebx
call edi
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, 1
je 0x464ad3
sub eax, 3
je 0x464a42
push ecx
push str.hex__x_:
lea edx, [ebp - 0x3c]
push 0x14
push edx
call fcn.004b49b1
lea eax, [ebp - 0x3c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464915
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 0x464a37
mov edi, 1
call fcn.004a35be
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46486b
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.00422613
add esp, 0xc
cmp edi, dword [ebp + 0xc]
jae 0x4649d2
push 0x4e641c
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.0042487b
add esp, 0xc
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00424d3a
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 0x4649d2
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 0x4649e0
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 0x464a24
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 0x464944
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x44]
push edx
jmp 0x464afe
call fcn.004a35be
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x464a5c
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 0x4f8588
push eax
call fcn.00422613
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 0x464a91
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 0x464b08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x464b08
cmp dword [ebp + 0xc], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
jbe 0x464ae5
mov edx, dword [ebp - 0x48]
push edx
jmp 0x464aea
push 0x4e3948
call fcn.0042462c
push ebx
call fcn.004645f0
add esp, 8
push 0
lea eax, [ebp - 0x44]
push eax
push 4
push 0x4e6470
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.004b134c
mov esp, ebp
pop ebp
ret