Function at 0x418fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
push str.ApplyPatchList
mov edi, ecx
call fcn.0041d700
mov eax, dword [edi + 0x7c]
add esp, 4
cmp eax, dword [edi + 0x80]
je 0x418fdc
mov dword [edi + 0x80], eax
mov ebx, dword [ebp + 8]
mov eax, 0x67b23a55
mov ecx, dword [ebx + 0x2ac]
sub ecx, dword [ebx + 0x2a8]
imul ecx
xor eax, eax
sar edx, 7
mov ecx, edx
mov dword [esp + 0xc], eax
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x419275
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
nop dword [eax + eax]
mov ebx, dword [ebx + 0x2a8]
add ebx, ecx
mov dword [esp + 0x10], ebx
je 0x4191d6
mov esi, dword [edi + 0x70]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x74]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x4190ac
lea ecx, [ebx + 1]
xor ebx, ebx
mov dword [esp + 0x20], ecx
nop
cmp dword [ebx + esi + 0x14], 0xf
lea eax, [ebx + esi]
jbe 0x41906c
mov eax, dword [eax]
push ecx
push eax
call fcn.006a6582
add esp, 8
test eax, eax
je 0x4191ca
mov ecx, dword [edi + 0x74]
mov eax, 0x2aaaaaab
mov esi, dword [edi + 0x70]
add ebx, 0x18
inc dword [esp + 0x14]
sub ecx, esi
imul ecx
mov ecx, dword [esp + 0x20]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jl 0x419060
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push ebx
push dword [ebp + 8]
mov ecx, edi
push dword [esp + 0x18]
call fcn.004188a0
test eax, eax
je 0x419455
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x419197
mov esi, dword [edi + 0x4c]
lea eax, [edi + 0x4c]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov eax, dword [eax + 4]
sub eax, esi
sar eax, 2
mov dword [esp + 0x24], eax
test eax, eax
jle 0x41917b
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x100]
mov dword [esp + 0x28], eax
nop word [eax + eax]
mov ecx, dword [esi]
push eax
call fcn.00432280
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x419135
mov eax, dword [esp + 0x28]
inc ebx
add esi, 4
cmp ebx, dword [esp + 0x24]
jl 0x419110
mov esi, dword [esp + 0x14]
jmp 0x41917e
push dword [esp + 0x10]
mov ecx, dword [ebp + 8]
call fcn.004317c0
mov dword [esp + 0x20], eax
test eax, eax
je 0x419455
mov esi, dword [esp + 0x14]
push 1
push dword [esp + 0x34]
mov ecx, dword [esi]
push eax
mov ecx, dword [ecx + ebx*4]
call fcn.004328c0
test al, al
je 0x4191f5
mov ecx, dword [esp + 0x20]
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, 1
jmp 0x419182
lea esi, [edi + 0x4c]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x41919a
push dword [esp + 0x10]
mov ecx, edi
push dword [esp + 0x10]
call fcn.00418b10
jmp 0x4191c4
lea esi, [edi + 0x4c]
inc dword [edi + 0x88]
mov eax, dword [edi + 0x88]
cdq
mov dword [0x7adda8], eax
mov dword [0x7addac], edx
mov eax, dword [edi + 0x8c]
cdq
mov dword [0x7addb0], eax
mov dword [0x7addb4], edx
cmp dword [edi + 0x48], 0
jne 0x419219
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
inc eax
add ecx, 0x13c
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ecx
cmp eax, edx
jge 0x419275
mov ebx, dword [ebp + 8]
jmp 0x419020
push 0x7726c4
push 0
call fcn.0041d690
mov ecx, dword [esp + 0x28]
add esp, 8
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 4]
xor edi, edi
mov ecx, dword [esi]
sub eax, ecx
test eax, 0xfffffffc
jle 0x41925f
nop dword [eax]
mov ecx, dword [ecx + edi*4]
call fcn.00430f20
mov eax, dword [esi]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x419250
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi]
mov dword [eax + edi*4], 0
mov eax, dword [esi + 4]
inc edi
mov ecx, dword [esi]
sub eax, ecx
sar eax, 2
cmp edi, eax
jl 0x419230
mov ecx, dword [ebp + 8]
call fcn.00430f20
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x50]
xor esi, esi
mov ecx, dword [edi + 0x4c]
sub eax, ecx
mov dword [esp + 0x20], esi
test eax, 0xfffffffc
jle 0x4193a8
nop
mov ebx, dword [ecx + esi*4]
cmp byte [ebx + 4], 0
jne 0x419390
cmp byte [ebx + 0x118], 0
je 0x419390
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x4192e2
mov eax, dword [ebx + 0x114]
lea edx, [esp + 0x2c]
push 0
push edx
push eax
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
jne 0x4192e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebx + 8], 0xffffffff
je 0x41932b
mov esi, dword [ebx + 0x2a8]
lea eax, [esp + 0x30]
mov ecx, dword [ebx + 0x2ac]
push 0
push eax
sub ecx, esi
mov dword [esp + 0x38], 0
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x13c
push eax
push esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x20]
mov eax, dword [ebx + 8]
mov byte [ebx + 0x118], 0
cmp eax, 0xffffffff
je 0x419362
push 0
lea ecx, [esp + 0x38]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [esp + 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x419362
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x419389
push 0
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push 0x110
lea eax, [ebx + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebx + 0x118], 0
mov eax, dword [edi + 0x50]
inc esi
mov ecx, dword [edi + 0x4c]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x20], esi
cmp esi, eax
jl 0x419290
mov esi, dword [edi + 0x7c]
cmp esi, dword [edi + 0x80]
je 0x419430
nop dword [eax]
nop word [eax + eax]
imul eax, dword [esi + 4], 0x13c
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x2a8]
push eax
call fcn.004317c0
mov ebx, eax
test ebx, ebx
je 0x419455
mov edx, dword [esi]
mov ecx, dword [edi + 0x4c]
push 0
push dword [esi + 8]
mov ecx, dword [ecx + edx*4]
push ebx
call fcn.004328c0
test al, al
je 0x41943e
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
inc dword [edi + 0x88]
add esi, 0xc
mov eax, dword [edi + 0x88]
cdq
mov dword [0x7adda8], eax
mov dword [0x7addac], edx
mov eax, dword [edi + 0x8c]
cdq
mov dword [0x7addb0], eax
mov dword [0x7addb4], edx
cmp esi, dword [edi + 0x80]
jne 0x4193c0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x7726c4
push 0
call fcn.0041d690
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push 1
call dword [eax]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4