Function at 0x4072d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42da9b
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edi, edx
mov dword [ebp - 0x28c], eax
cmp esi, ecx
je 0x407622
cmp edi, ecx
je 0x407622
cmp eax, ecx
je 0x407622
xor edx, edx
mov dword [ebp - 0x284], ecx
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], ecx
mov word [ebp - 0x27c], dx
mov dword [ebp - 4], ecx
cmp ebx, 3
jne 0x40735b
push str.REG_BINARY
jmp 0x407395
cmp ebx, 4
jne 0x407367
push str.REG_DWORD
jmp 0x407395
cmp ebx, 7
jne 0x407373
push str.REG_MULTI_SZ
jmp 0x407395
cmp ebx, 0xb
jne 0x40737f
push str.REG_QWORD
jmp 0x407395
cmp ebx, 1
jne 0x40738b
push str.REG_SZ
jmp 0x407395
cmp ebx, 2
jne 0x4073a0
push str.REG_EXPAND_SZ
lea ecx, [ebp - 0x280]
call fcn.00404440
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x262]
push ecx
mov word [ebp - 0x264], ax
call fcn.00421960
mov edx, dword [ebp - 0x288]
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x264]
push 0x104
push eax
call fcn.004204c3
add esp, 0x1c
push edi
lea ecx, [ebp - 0x264]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x284]
push edx
push 0xc
push str.Name:
push esi
call edi
lea eax, [ebp - 0x264]
lea edx, [eax + 2]
jmp 0x407410
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407410
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x284]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x264]
push eax
push esi
call edi
push 0
lea ecx, [ebp - 0x284]
push ecx
push 0xe
push str._Type:
push esi
call edi
cmp dword [ebp - 0x268], 8
mov eax, dword [ebp - 0x27c]
jae 0x40745e
lea eax, [ebp - 0x27c]
mov ecx, dword [ebp - 0x26c]
push 0
lea edx, [ebp - 0x284]
push edx
lea edx, [ecx + ecx]
push edx
push eax
push esi
call edi
push 0
lea eax, [ebp - 0x284]
push eax
push 0x10
push str._Value:
push esi
call edi
cmp ebx, 7
je 0x4075e0
cmp ebx, 1
je 0x4075e0
cmp ebx, 2
je 0x4075e0
cmp ebx, 4
jne 0x407505
xor ecx, ecx
push 0x3e
push ecx
lea edx, [ebp - 0x52]
push edx
mov word [ebp - 0x54], cx
call fcn.00421960
mov eax, dword [ebp - 0x28c]
mov ecx, dword [eax]
push ecx
push 0x435ef0
push 0xffffffffffffffff
lea edx, [ebp - 0x54]
push 0x20
push edx
call fcn.00421439
lea eax, [ebp - 0x54]
add esp, 0x20
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4074e0
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x284]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x54]
push eax
jmp 0x4075f4
cmp ebx, 0xb
jne 0x407551
xor ecx, ecx
push 0x3e
push ecx
lea edx, [ebp - 0x52]
push edx
mov word [ebp - 0x54], cx
call fcn.00421960
mov eax, dword [ebp - 0x28c]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push str._I64u
push 0xffffffffffffffff
lea eax, [ebp - 0x54]
push 0x20
push eax
call fcn.00421439
lea eax, [ebp - 0x54]
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407544
jmp 0x4074eb
cmp ebx, 3
jne 0x4075f7
mov eax, dword [ebp + 0x10]
lea eax, [eax + eax + 1]
add eax, eax
push eax
mov dword [ebp - 0x290], eax
call fcn.0042136f
mov ebx, eax
add esp, 4
mov dword [ebp - 0x288], ebx
test ebx, ebx
je 0x4075f7
mov ecx, dword [ebp - 0x290]
push ecx
push 0
push ebx
call fcn.00421960
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
lea eax, [eax + eax + 1]
push eax
push ebx
mov ebx, dword [ebp - 0x28c]
call fcn.00407640
add esp, 0x14
test eax, eax
je 0x4075c9
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 0x288]
push 0
lea edx, [ebp - 0x284]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x288]
push edx
call fcn.004202bd
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 4
jmp 0x4075f7
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x28c]
push 0
lea eax, [ebp - 0x284]
push eax
push ecx
push edx
push esi
call edi
push 0
lea eax, [ebp - 0x284]
push eax
push 4
push 0x435f04
push esi
call edi
cmp dword [ebp - 0x268], 8
jb 0x407622
mov ecx, dword [ebp - 0x27c]
push ecx
call fcn.0041f860
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041f86b
mov esp, ebp
pop ebp
ret 0xc