Function at 0x10bd502
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x10de03c]
and dword [ebp - 0x420], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
push edi
mov edi, ecx
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x34]
mov dword [ebp - 0x424], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x42c], ecx
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx]
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x40c]
and dword [ecx], 0
xor ecx, ecx
mov dword [eax], 1
cmp dword [edi], ecx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x408], edx
je 0x10bd66a
mov eax, dword [ebx]
cmp eax, ecx
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], cx
je 0x10bd596
cmp eax, 0xffffffff
je 0x10bd596
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov ecx, 0x48545058
cmp dword [edi], ecx
jne 0x10bd5b3
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov eax, dword [edi + 8]
mov dword [ebx + 0x224], eax
jmp 0x10bd5bb
and word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 0
mov eax, dword [edi]
cmp eax, 0x4d555343
jne 0x10bd5cf
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
jmp 0x10bd5e5
cmp eax, 0x42444d58
je 0x10bd5e5
cmp eax, ecx
je 0x10bd5e5
cmp eax, 0x474c4f58
jne 0x10bd9f7
mov eax, dword [edi]
and dword [ebx + 0x218], 0
and dword [ebx + 0x21c], 0
mov dword [ebx + 8], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x210], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x214], eax
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx]
lea eax, [ebx + 0x218]
add dword [eax], ecx
mov ecx, dword [eax]
adc dword [eax + 4], 0
cmp ecx, dword [ebx + 0x210]
jne 0x10bd654
mov eax, dword [eax + 4]
cmp eax, dword [ebx + 0x214]
jne 0x10bd654
mov eax, dword [ebp - 0x42c]
mov word [eax + 0x44], 1
mov eax, dword [ebx]
test eax, eax
je 0x10bd654
cmp eax, 0xffffffff
je 0x10bd654
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0xc
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], cx
je 0x10bd67b
xor ax, ax
jmp 0x10bd973
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], cx
je 0x10bd7d6
mov ecx, dword [ebx + 0x224]
cmp dword [ebp - 0x410], ecx
jae 0x10bd69d
mov dword [eax], ecx
jmp 0x10bd7ce
mov eax, dword [ebp - 0x42c]
and word [eax + 0x44], 0
mov eax, dword [esi + 0x14]
cmp byte [eax + 0x28], 0x1e
jne 0x10bd747
call fcn.010c7cde
mov esi, dword [ebp - 0x408]
add dword [ebp - 0x408], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x448]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x408]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010c7cde
mov esi, dword [ebp - 0x408]
add dword [ebp - 0x408], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x648]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x408]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010c7cde
mov esi, dword [ebp - 0x408]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x248]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x408]
add esi, eax
mov edx, esi
call fcn.010c7cde
lea edi, [ebx + 0x848]
jmp 0x10bd7aa
call fcn.010c7cde
mov esi, dword [ebp - 0x408]
add dword [ebp - 0x408], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x248]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x408]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010c7cde
mov esi, dword [ebp - 0x408]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x448]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x408]
add esi, eax
mov edx, esi
call fcn.010c7cde
lea edi, [ebx + 0x648]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x224]
mov ecx, dword [ebp - 0x40c]
mov dword [ecx], eax
and word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 0
xor ax, ax
jmp 0x10bd65b
mov edi, dword [edx]
cmp edi, ecx
jbe 0x10bdb1a
mov ecx, dword [ebx + 0x218]
or ecx, dword [ebx + 0x21c]
jne 0x10bdb1a
push 4
pop ecx
cmp dword [ebp - 0x410], ecx
jae 0x10bd804
mov dword [eax], ecx
jmp 0x10bd60a
add edi, 4
cmp edi, dword [ebp - 0x410]
jbe 0x10bd81a
mov dx, word [edx]
add dx, cx
movzx ecx, dx
jmp 0x10bd7fd
and dword [ebp - 0x41c], 0
add edx, 4
mov eax, edx
jmp 0x10bd836
cmp cx, 0x5c
jne 0x10bd834
mov dword [ebp - 0x414], eax
inc eax
inc eax
mov cx, word [eax]
test cx, cx
jne 0x10bd828
mov esi, dword [ebp - 0x414]
mov edx, esi
call fcn.010c7cde
mov ecx, eax
shr ecx, 2
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x408]
add edi, 4
mov edx, edi
call fcn.010c7cde
mov esi, dword [ebp - 0x408]
cmp eax, dword [esi]
je 0x10bd890
mov edx, edi
call fcn.010c7cde
shr eax, 1
lea eax, [esi + eax*2 + 4]
mov ax, word [eax]
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], ax
cmp dword [ebx + 8], 0x474c4f58
jne 0x10bd8ba
xor eax, eax
mov ax, word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
lea eax, [ebp - 0x404]
push eax
mov eax, dword [ebp - 0x418]
call fcn.010bd141
jmp 0x10bda25
mov eax, dword [ebp - 0x418]
mov eax, dword [eax + 0x14]
mov al, byte [eax + 0x28]
cmp al, 0x1e
jne 0x10bda00
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x414]
test edx, edx
mov dword [eax + 0x2210], 0x7fffffff
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
je 0x10bda25
mov eax, dword [ebp - 0x418]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x9c]
shr eax, 7
and eax, 3
cmp eax, 1
jne 0x10bd986
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0x45
je 0x10bd966
call fcn.010c7cde
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea ecx, [ebx + 0x448]
push ecx
mov dword [ebp - 0x424], eax
call esi
mov edi, eax
lea eax, [ebp - 0x404]
push eax
call esi
mov esi, dword [ebp - 0x414]
pop ecx
pop ecx
mov ecx, 0x224
sub ecx, eax
mov eax, dword [ebp - 0x424]
add edi, ecx
mov ecx, eax
lea edi, [ebx + edi*2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10bda1f
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov ax, 0xfeb1
mov ecx, dword [ebp - 0x410]
mov edx, dword [ebp - 0x40c]
mov dword [edx], ecx
jmp 0x10bd65b
cmp eax, 2
jne 0x10bda25
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0x46
je 0x10bd9e0
call fcn.010c7cde
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea ecx, [ebx + 0x648]
push ecx
mov dword [ebp - 0x424], eax
call esi
mov edi, eax
lea eax, [ebp - 0x404]
push eax
call esi
mov esi, dword [ebp - 0x414]
pop ecx
pop ecx
mov ecx, 0x324
sub ecx, eax
mov eax, dword [ebp - 0x424]
add edi, ecx
mov ecx, eax
lea edi, [ebx + edi*2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10bda1f
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov dword [ecx], eax
mov ax, 0xfeb1
jmp 0x10bd65b
cmp al, 0x1f
jne 0x10bda25
mov eax, dword [ebp - 0x424]
mov dword [eax + 0x2210], 0x7fffffff
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
jmp 0x10bda25
mov esi, dword [ebp - 0x408]
mov ax, word [esi]
mov ecx, dword [ebp - 0x40c]
add ax, 4
movzx eax, ax
add esi, 4
mov edx, esi
mov dword [ecx], eax
call fcn.010c7cde
push dword [ebp - 0x41c]
mov ecx, eax
shr ecx, 2
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x404]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x418]
push eax
push edi
push dword [edi]
call fcn.010bd25a
mov esi, eax
test esi, esi
mov dword [ebp - 0x414], esi
jne 0x10bda9a
lea eax, [ebp - 0x404]
push eax
push 0xffffffffffffffff
push 0x10121f0
push dword [edi]
call fcn.01082ee2
mov ax, 0xfe40
jmp 0x10bd65b
mov edx, esi
call fcn.010c7cde
lea edx, [ebx + 0x10]
mov ecx, eax
shr ecx, 2
mov dword [ebx + 0xc], eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push 0xa000080
push 2
push esi
push esi
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x10bdae0
mov dword [ebp - 0x420], 0xfffffe30
push dword [ebp - 0x414]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x40c]
mov eax, dword [eax]
sub dword [ebp - 0x410], eax
add dword [ebp - 0x408], eax
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], si
pop ecx
jne 0x10bd60a
mov esi, dword [ebp - 0x418]
mov edx, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x410]
test ecx, ecx
je 0x10bd60a
mov eax, dword [ebx + 0x210]
mov edi, dword [ebx + 0x218]
mov dword [ebp - 0x428], eax
xor eax, eax
add ecx, edi
adc eax, dword [ebx + 0x21c]
cmp eax, dword [ebx + 0x214]
jb 0x10bdb5c
mov eax, dword [ebp - 0x428]
ja 0x10bdb58
cmp ecx, eax
jbe 0x10bdb5c
sub eax, edi
jmp 0x10bdb62
mov eax, dword [ebp - 0x410]
push 0
lea ecx, [ebp - 0x430]
push ecx
push eax
push edx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10bdb8c
mov ecx, dword [ebp - 0x430]
mov eax, dword [ebp - 0x40c]
add dword [eax], ecx
jmp 0x10bd60a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x10bdbbd
cmp eax, 0x27
je 0x10bdbbd
push 0x100d780
push eax
push 0x10121d4
push dword [esi]
call fcn.01082ee2
mov dword [ebp - 0x420], 0xfffffe40
jmp 0x10bd60a
mov ax, 0xfe06
jmp 0x10bd65b