Function at 0x426190
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x26c
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x268], eax
cmp dword [ebx + 8], 0xffffffff
push ebp
mov ebp, dword [esp + 0x274]
push esi
push edi
mov edi, ecx
je 0x4261eb
push 0x10d
mov dword [esp + 0x18], 0x10d
call fcn.0044e523
mov esi, eax
add esp, 4
mov eax, ebp
lea edx, [esp + 0x14]
mov ecx, esi
mov dword [esp + 0x24], esi
call fcn.0042d770
test eax, eax
je 0x4261f2
push esi
call fcn.0044e528
add esp, 4
xor al, al
jmp 0x42651e
mov ecx, dword [esi]
mov eax, 0x51eb851f
mul ecx
shr edx, 4
imul edx, edx, 0x32
push edi
sub ecx, edx
lea eax, [esp + 0x16c]
mov ebp, ecx
push 0x104
push eax
mov dword [esp + 0x24], ebp
call fcn.004739e4
add esp, 0xc
lea ecx, [esp + 0x168]
push 0x104
push ecx
call fcn.00472f8c
lea edx, [esp + 0x170]
push edx
call fcn.00420750
add esp, 0xc
push ebx
lea edx, [esp + 0x16c]
call fcn.004259d0
cmp eax, 0xffffffff
je 0x426261
lea ecx, [esp + 0x168]
mov esi, ebx
call fcn.00426a30
mov esi, dword [esp + 0x14]
push esi
mov eax, ebx
call fcn.00425fd0
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x426391
push 0x13c
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00475860
add esp, 0xc
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x2c]
push 0x100
push edx
call fcn.004739e4
mov eax, dword [ebx + 0x114]
mov dword [esp + 0x144], ebp
mov dword [esp + 0x134], esi
mov dword [esp + 0x13c], esi
mov dword [esp + 0x140], eax
lea ebp, [ebx + 0x2a0]
add esp, 0xc
lea eax, [esp + 0x28]
mov esi, ebp
mov dword [esp + 0x12c], 0x100
call fcn.00426d60
mov eax, dword [ebp + 4]
test eax, eax
je 0x426303
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edi, [eax - 1]
mov dword [esp + 0x10], edi
call fcn.00412400
mov ecx, dword [ebx + 8]
mov eax, dword [eax + 0x10c]
xor edx, edx
cmp ecx, 0xffffffff
je 0x426327
push edx
push eax
push ecx
call fcn.00424e90
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x42634f
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ecx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
mov byte [ebx + 0x118], 1
jne 0x426373
or eax, eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [ebx + 0x114], eax
jmp 0x42649d
push 0
push 0
push eax
mov edx, 1
call fcn.00424e90
mov dword [esp + 0x1c], edx
mov dword [ebx + 0x114], eax
jmp 0x42649d
lea ebp, [ebx + 0x2a0]
mov edi, eax
mov esi, ebp
call fcn.00412400
lea edx, [esp + 0x168]
push edx
mov esi, eax
lea eax, [esp + 0x2c]
push 0x100
mov ecx, 0x4f
lea edi, [esp + 0x30]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004739e4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov esi, ebp
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], 0x100
mov dword [esp + 0x138], edx
call fcn.00412400
mov edi, eax
mov ecx, 0x4f
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov esi, ebp
call fcn.00412400
mov ecx, dword [ebx + 8]
mov eax, dword [eax + 0x10c]
xor edx, edx
cmp ecx, 0xffffffff
je 0x426423
push edx
push eax
push ecx
call fcn.00424e90
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x42644b
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ecx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x426470
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x114]
imul edx, edx, 0x13c
add ecx, edx
push 0
push ecx
push eax
xor edx, edx
call fcn.00424e90
mov edi, dword [esp + 0x10]
call fcn.00412400
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x42649d
push 0
lea edx, [esp + 0x1c]
push edx
push 0x13c
push eax
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 4]
test eax, eax
je 0x4264ba
mov ebp, dword [ebp + 8]
sub ebp, eax
mov eax, 0x67b23a55
imul ebp
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebx + 0x110], eax
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x4264d4
push 0
push 0
push eax
xor edx, edx
call fcn.00424e90
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x4264fb
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x110
lea edx, [ebx + 0xc]
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x24]
push eax
call fcn.0044e528
mov esi, dword [esp + 0x14]
add esp, 4
push esi
mov ecx, ebx
call fcn.00425c60
push esi
mov eax, ebx
call fcn.00424f40
mov al, 1
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004716ba
add esp, 0x26c
ret 4