Function at 0x45b8e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x130
push ebx
push ebp
push edi
xor eax, eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x33c], eax
mov dword [esi + 0x340], eax
mov dword [esi + 0x344], eax
mov dword [esi + 0x348], eax
mov dword [esi + 0x34c], eax
mov dword [esi + 0x350], eax
mov dword [esi + 0x354], eax
mov dword [esi + 0x358], eax
mov dword [esi + 0x35c], eax
mov dword [esi + 0x360], eax
mov dword [esi + 0x364], eax
mov dword [esi + 0x368], eax
mov dword [esi + 0x36c], eax
mov dword [esi + 0x370], eax
mov dword [esi + 0x374], eax
mov dword [esi + 0x378], eax
mov dword [esi + 0x37c], eax
mov dword [esi + 0x380], eax
mov dword [esi + 0x384], eax
mov dword [esi + 0x388], eax
mov dword [esi + 0x38c], eax
mov dword [esi + 0x390], eax
mov dword [esi + 0x394], eax
mov dword [esi + 0x398], eax
mov dword [esi + 0x39c], eax
mov dword [esi + 0x3a0], eax
mov dword [esi + 0x3a4], eax
mov dword [esi + 0x3a8], eax
mov dword [esi + 0x3ac], eax
push 0x334
mov dword [esi + 0x3b0], eax
lea eax, [esi + 8]
push 0
push eax
call fcn.00487bc0
mov ebp, dword [esp + 0x150]
mov ecx, esi
add esp, 0xc
sub ecx, ebp
mov eax, ebp
lea edx, [ecx + 0x6fc]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x45b9d2
lea ebx, [esp + 0x30]
sub ebx, ebp
mov eax, ebp
mov dword [esp + 0xc], ebx
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x45b9e8
lea eax, [esp + 0x30]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45b9f7
mov edx, dword [str..mat]
mov cl, byte [0x4c8048]
mov dword [eax], edx
xor edx, edx
cmp dword [0x912308], edx
mov byte [eax + 4], cl
setne dl
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push edx
push eax
push ecx
push str.effect.arc
call fcn.004635c0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x45bc14
push edi
push 1
lea eax, [esi + 8]
push 0x334
push eax
call fcn.00484992
push edi
call fcn.004854f7
add esp, 0x14
mov eax, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x45ba60
lea eax, [esp + 0x30]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45ba70
mov edx, dword [str..wip]
mov cl, byte [0x4c6ef0]
mov dword [eax], edx
lea edi, [esp + 0x30]
mov edx, str.effect.arc
mov byte [eax + 4], cl
call fcn.00466630
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
je 0x45bc14
cmp edx, 0x1e
jg 0x45bc14
mov eax, dword [esp + 0x140]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [ecx + ecx + 0x473]
mov dword [esi], eax
xor eax, eax
test edx, edx
jle 0x45bb13
lea ebp, [esi + 0x42c]
mov edx, dword [esi]
push str.effect.arc
lea ecx, [esp + 0x14]
push ecx
lea ebx, [eax + 1]
push ebp
add edx, eax
push ebx
push edx
lea edi, [esp + 0x44]
call fcn.00401530
add esp, 0x14
test eax, eax
je 0x45bc14
mov eax, ebx
add ebp, 0x18
cmp eax, dword [esp + 0x14]
jl 0x45bad1
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x144]
cmp dword [esi + 0xc], 2
jne 0x45bc1b
mov eax, ebp
nop
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x45bb20
lea eax, [esp + 0x30]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45bb30
mov ecx, dword [str..msk]
mov dword [eax], ecx
mov cl, byte [0x4c6ef8]
mov byte [eax + 4], cl
test edx, edx
jle 0x45bc1b
lea edx, [esi + 0x3b4]
mov edi, 1
mov dword [esp + 0xc], edx
push 1
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push str.effect.arc
lea eax, [esp + 0x44]
call fcn.004666e0
add esp, 0x14
test eax, eax
je 0x45bc14
cmp dword [esp + 0x10], 8
jne 0x45bc14
mov eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x18]
add eax, 7
push eax
call fcn.004836a3
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45bc14
test bl, 7
je 0x45bbbf
mov edx, ebx
shr edx, 3
lea ebp, [edx*8 + 8]
jmp 0x45bbc1
mov ebp, ebx
push 0
push edi
lea eax, [esp + 0x20]
push ebp
push eax
lea eax, [esp + 0x40]
mov edx, str.effect.arc
call fcn.00466950
add esp, 0x10
test eax, eax
je 0x45bc0b
mov eax, dword [esp + 0xc]
inc edi
mov dword [eax - 0x78], ebx
mov dword [eax], ebp
add eax, 4
lea ecx, [edi - 1]
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jl 0x45bb60
mov eax, esi
pop edi
pop ebp
pop ebx
add esp, 0x130
ret 8
push ebx
call fcn.004835c6
add esp, 4
mov dword [esi + 4], 0xffffffff
pop edi
pop ebp
mov eax, esi
pop ebx
add esp, 0x130
ret 8