Function at 0x462a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d01c0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x512f18]
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.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x462ab5
push 0x80004005
call fcn.00421000
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 0x462af5
test esi, 0xffff0000
jne 0x462aec
movzx esi, si
push esi
call fcn.004a6e27
test eax, eax
je 0x462afe
push esi
push eax
mov ecx, edi
call fcn.00423ccc
jmp 0x462afe
push esi
call fcn.004ad5da
add esp, 4
push eax
push esi
mov ecx, edi
call fcn.0042424f
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00462830
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
push 0
lea ecx, [ebp - 0x44]
push ecx
push 2
push 0x4e01bc
push ebx
call edi
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, 1
je 0x462d13
sub eax, 3
je 0x462c82
push ecx
push str.hex__x_:
lea edx, [ebp - 0x3c]
push 0x14
push edx
call fcn.004b02d1
lea eax, [ebp - 0x3c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x462b55
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 0x462c77
mov edi, 1
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x462aab
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.004215f2
add esp, 0xc
cmp edi, dword [ebp + 0xc]
jae 0x462c12
push 0x4e13c4
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.00423856
add esp, 0xc
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00423d5a
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 0x462c12
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 0x462c20
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 0x462c64
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 0x462b84
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x44]
push edx
jmp 0x462d3e
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x462c9c
push 0x80004005
call fcn.00421000
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 0x4f3170
push eax
call fcn.004215f2
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 0x462cd1
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 0x462d48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x462d48
cmp dword [ebp + 0xc], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
jbe 0x462d25
mov edx, dword [ebp - 0x48]
push edx
jmp 0x462d2a
push 0x4de948
call fcn.00423607
push ebx
call fcn.00462830
add esp, 8
push 0
lea eax, [ebp - 0x44]
push eax
push 4
push 0x4e1418
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.004acc76
mov esp, ebp
pop ebp
ret