Function at 0x40b270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x44c044]
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.00428490
add esp, 0xc
cmp dword [0x48ba80], 1
je 0x40b2de
mov eax, 0x487580
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b2b4
sub eax, edx
sar eax, 1
cmp eax, 7
jb 0x40b2de
cmp dword [0x489424], 0
je 0x40b2f4
push 0x43f504
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.004217e4
mov esp, ebp
pop ebp
ret
push 0x43f540
call fcn.00406870
add esp, 4
lea ecx, [ebp - 0x410]
push ecx
push 0x487580
call fcn.0040d620
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x616]
push eax
mov word [ebp - 0x618], dx
call fcn.00428490
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x48cce0
lea ecx, [ebp - 0x618]
push str._sPolicySystemPolicyContainer.opt
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x618]
push 0x43c118
push edx
call fcn.00421cda
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b377
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217e4
mov esp, ebp
pop ebp
ret
push 2
push 0
push esi
call fcn.00422a6b
add esp, 0xc
push esi
call fcn.0042297c
add esp, 4
push esi
mov ebx, eax
call fcn.004218c1
add esp, 4
push esi
call fcn.00422ba5
add esp, 4
cmp ebx, 0x1f4
ja 0x40b2de
push 0x206
xor esi, esi
lea ecx, [ebp - 0x20e]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x210], ax
call fcn.00428490
add esp, 0xc
push 0x206
lea eax, [ebp - 0x81e]
xor edx, edx
push esi
push eax
mov word [ebp - 0x820], dx
call fcn.00428490
add esp, 0xc
push 0x48ef90
lea ecx, [ebp - 0x820]
push str._sPolicySystemPolicyContainer.opt
push ecx
call edi
add esp, 0xc
push 0x48cce0
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.00428830
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 0x40b4df
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.0040d280
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004217e4
mov esp, ebp
pop ebp
ret