Function at 0x455030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x517e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
push 0x4d5b60
mov eax, dword [ebp + 8]
push eax
call fcn.004675ba
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x455093
mov ecx, dword [ebp + 8]
push ecx
push str.Failed_to_open_patch_file:__s_n
call fcn.00463e31
add esp, 8
jmp 0x4552b9
mov edx, dword [ebp + 8]
push edx
push str.Loading_patch_file__s_n
call fcn.00463e31
add esp, 8
push 0xa
call fcn.00447170
add esp, 4
mov dword [ebp - 0x28], 0
jmp 0x4550c0
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 8
jge 0x455137
mov ecx, dword [ebp - 0x2c]
push ecx
push 1
push 4
mov edx, dword [ebp - 0x28]
lea eax, [edx*4 + 0x517a20]
push eax
call fcn.004681fe
add esp, 0x10
cmp dword [0x51aa54], 0
je 0x455101
mov ecx, dword [ebp - 0x28]
mov edx, dword [0x51aa54]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax*4 + 0x517a20]
mov dword [edx + ecx*4 + 0x18], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx*4 + 0x517a20]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax*4 + 0x517a40]
push ecx
push str._s__8x
call fcn.00463e31
add esp, 0xc
cmp dword [ebp - 0x28], 3
je 0x455130
cmp dword [ebp - 0x28], 7
jne 0x455135
call fcn.004470d0
jmp 0x4550b7
call fcn.004470a0
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x2c]
push edx
push 1
push 0x20
lea eax, [ebp - 0x24]
push eax
call fcn.004681fe
add esp, 0x10
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x18], 0
jbe 0x4552ad
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0046787d
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 5], 0
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0046765b
add esp, 0xc
test eax, eax
je 0x4551ab
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x28]
push eax
push str.Patch:__d____Error_seeking_data_offset__x_cmt_s_n
call fcn.00463e31
add esp, 0x10
jmp 0x4552ad
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00463cd9
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004681fe
add esp, 0x10
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x1c]
je 0x4551fd
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x28]
push eax
push str.patch__d___failed_to_read_full_size__x_readsz_x_cmt_s_n
call fcn.00463e31
add esp, 0x14
jmp 0x4552ad
push 0xc
push 0
lea ecx, [ebp - 0x44]
push ecx
call fcn.00463640
add esp, 0xc
push 8
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.004636c0
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x44]
push ecx
call fcn.004642bd
add esp, 0xc
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [0x51aa58]
push edx
call fcn.00446700
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x28]
push eax
push str.Applied_patch__d_va_x_sz_x_cmt_s_n
call fcn.00463e31
add esp, 0x14
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00463da3
add esp, 4
push 0
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0046765b
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
push ecx
push 1
push 0x20
lea edx, [ebp - 0x24]
push edx
call fcn.004681fe
add esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
jmp 0x45515a
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00467296
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463ff8
mov esp, ebp
pop ebp
ret