Function at 0x40b0e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x44a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1ff
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.00427f40
add esp, 0xc
cmp dword [0x489a80], 1
je 0x40b14e
mov eax, 0x485580
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b124
sub eax, edx
sar eax, 1
cmp eax, 7
jb 0x40b14e
cmp dword [0x487424], 0
je 0x40b164
push 0x43e2dc
call fcn.00406870
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
push 0x43e318
call fcn.00406870
add esp, 4
lea ecx, [ebp - 0x410]
push ecx
push 0x485580
call fcn.0040d3c0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x616]
push eax
mov word [ebp - 0x618], dx
call fcn.00427f40
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x48ace0
lea ecx, [ebp - 0x618]
push str._sPolicySystemPolicyContainer.opt
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x618]
push 0x43b120
push edx
call fcn.0042178a
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b1e7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
push 2
push 0
push esi
call fcn.0042251b
add esp, 0xc
push esi
call fcn.0042242c
add esp, 4
push esi
mov ebx, eax
call fcn.00421371
add esp, 4
push esi
call fcn.00422655
add esp, 4
cmp ebx, 0x1f4
ja 0x40b14e
push 0x206
xor esi, esi
lea ecx, [ebp - 0x20e]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x210], ax
call fcn.00427f40
add esp, 0xc
push 0x206
lea eax, [ebp - 0x81e]
xor edx, edx
push esi
push eax
mov word [ebp - 0x820], dx
call fcn.00427f40
add esp, 0xc
push 0x48cf90
lea ecx, [ebp - 0x820]
push str._sPolicySystemPolicyContainer.opt
push ecx
call edi
add esp, 0xc
push 0x48ace0
lea edx, [ebp - 0x210]
push str._sPolicySystemPolicyContainer.opt
push edx
call edi
add esp, 0xc
lea eax, [ebp - 0x828]
push 0x30
push eax
mov dword [ebp - 0x828], esi
call fcn.00409310
lea ecx, [ebp - 0x824]
push 0x88
push ecx
mov dword [ebp - 0x824], esi
call fcn.00409310
mov ebx, dword [ebp - 0x824]
lea edi, [ebp - 0x410]
mov esi, ebx
call fcn.004093f0
mov esi, dword [ebp - 0x828]
mov edx, dword [ebx + 0x10]
mov eax, dword [esi + 0x20]
add eax, dword [esi + 0x18]
push edx
push ebx
push eax
call fcn.004282e0
mov ecx, dword [ebx + 0x10]
add dword [esi + 0x18], ecx
mov ebx, 1
add dword [esi + 0x28], ebx
add dword [esi + 0x2c], ebx
add esp, 0x1c
lea edi, [ebp - 0x824]
call fcn.004093c0
mov edx, dword [esi + 0x14]
add edx, dword [esi + 0x18]
push 0
push 0x8000080
push 2
push 0
push ebx
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
mov dword [esi + 0x10], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b34f
push 0
lea ecx, [ebp - 0x824]
push ecx
mov dword [ebp - 0x824], 0
mov edx, dword [esi + 0x10]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebp - 0x828]
call fcn.004093c0
lea esi, [ebp - 0x820]
lea eax, [ebp - 0x210]
call fcn.0040d020
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00421294
mov esp, ebp
pop ebp
ret