Function at 0x468840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db440
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x522f10]
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.004aa2e3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x468895
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 0x4688d5
test esi, 0xffff0000
jne 0x4688cc
movzx esi, si
push esi
call fcn.004b2260
test eax, eax
je 0x4688de
push esi
push eax
mov ecx, edi
call fcn.00424e90
jmp 0x4688de
push esi
call fcn.004b8a1a
add esp, 4
push eax
push esi
mov ecx, edi
call fcn.00425413
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00468610
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
push 0
lea ecx, [ebp - 0x44]
push ecx
push 2
push 0x4ec2d4
push ebx
call edi
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, 1
je 0x468af3
sub eax, 3
je 0x468a62
push ecx
push str.hex__x_:
lea edx, [ebp - 0x3c]
push 0x14
push edx
call fcn.004bb711
lea eax, [ebp - 0x3c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468935
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 0x468a57
mov edi, 1
call fcn.004aa2e3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46888b
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.0042261a
add esp, 0xc
cmp edi, dword [ebp + 0xc]
jae 0x4689f2
push 0x4ed8ac
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.00424a42
add esp, 0xc
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00424f1e
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 0x4689f2
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 0x468a00
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 0x468a44
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 0x468964
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x44]
push edx
jmp 0x468b1e
call fcn.004aa2e3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x468a7c
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 0x500d98
push eax
call fcn.0042261a
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 0x468ab1
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 0x468b28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x468b28
cmp dword [ebp + 0xc], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
jbe 0x468b05
mov edx, dword [ebp - 0x48]
push edx
jmp 0x468b0a
push 0x4eaa5c
call fcn.004247f3
push ebx
call fcn.00468610
add esp, 8
push 0
lea eax, [ebp - 0x44]
push eax
push 4
push 0x4ed92c
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.004b80af
mov esp, ebp
pop ebp
ret