Function at 0x412f90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push ebx
push esi
push edi
cmp eax, 0xa0498
ja 0x412ff7
mov esi, eax
mov dword [ebp - 0xc], eax
jmp 0x412fff
mov esi, 0xa0498
mov dword [ebp - 0xc], esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x413618
cmp dword [ebp + 0xc], 0
je 0x413618
cmp dword [ebp + 0x10], 0
je 0x413618
mov edi, dword [ebp + 0x14]
cmp edi, 0xffffffff
je 0x413618
push esi
call fcn.00409565
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x41333f
push esi
push 0
push eax
call fcn.00407790
mov eax, esi
push 2
neg eax
push eax
push edi
call fcn.0040fc80
add esp, 0x18
cmp eax, 0xffffffff
je 0x4135f3
push esi
push dword [ebp - 4]
push edi
call fcn.00410cd7
add esp, 0xc
cmp eax, 0xffffffff
je 0x4135f3
cmp eax, esi
jne 0x4135f3
lea edi, [esi - 0x10]
test edi, edi
js 0x413115
mov eax, dword [ebp - 4]
add eax, edi
mov dword [ebp + 8], eax
lea ecx, [ecx]
mov ecx, eax
mov edx, str.62F3AB0132FAVCSE
mov esi, 0xc
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x413109
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4130b0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebx + 0x4e], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0x52], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 0x56], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0x5a], eax
cmp edi, 0x15
jae 0x41313e
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x413600
push dword [ebp + 0x24]
mov dword [eax], 8
lea eax, [ebp - 0x38]
push eax
call fcn.004129a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
dec eax
sub edi, 1
mov dword [ebp + 8], eax
jns 0x4130a0
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x413600
push dword [ebp + 0x24]
mov dword [eax], 7
lea eax, [ebp - 0x38]
push eax
call fcn.004129a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
mov eax, esi
mov edx, dword [ebp + 0x10]
sub eax, edi
mov ecx, dword [ebp - 4]
mov dword [edx], eax
mov al, byte [edi + ecx - 1]
mov byte [ebx + 0x4d], al
cmp al, 0x42
jne 0x413323
mov al, byte [edi + ecx - 2]
mov byte [ebx + 0x4c], al
mov eax, dword [edi + ecx - 6]
mov dword [ebx + 0x48], eax
mov al, byte [edi + ecx - 7]
mov byte [ebx + 0x44], al
mov ecx, dword [edi + ecx - 0xb]
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x40], ecx
mov eax, dword [edx]
add eax, ecx
mov dword [edi], eax
mov eax, dword [edx]
add eax, dword [ebx + 0x40]
mov edi, dword [ebp + 0x14]
neg eax
push 2
push eax
push edi
call fcn.0040fc80
add esp, 0xc
cmp eax, 0xffffffff
je 0x4135f3
push esi
push 0
push dword [ebp - 4]
call fcn.00407790
push esi
push dword [ebp - 4]
push edi
call fcn.00410cd7
add esp, 0x18
cmp eax, 0xffffffff
je 0x4135f3
mov esi, dword [ebp - 4]
mov ecx, ebx
mov edx, str.AVCS4F3A4200C37O
mov edi, 0xc
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x413115
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4131e6
mov al, byte [esi + 0x10]
mov byte [ebx + 0x10], al
mov eax, dword [esi + 0x11]
mov dword [ebx + 0x14], eax
mov al, byte [esi + 0x15]
mov byte [ebx + 0x18], al
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x1c], eax
cmp eax, dword [ebp + 0x18]
ja 0x413309
mov al, byte [esi + 0x1a]
lea edi, [ebx + 0x30]
mov byte [ebx + 0x20], al
mov esi, 0x27
mov dword [ebp + 8], 0
test al, al
je 0x4132d7
lea esp, [esp]
push 0x20
call fcn.00409565
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x4135bb
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
mov al, byte [esi + eax]
mov byte [ecx], al
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
mov al, byte [esi + eax + 1]
mov byte [ecx + 1], al
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax + 2]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
mov al, byte [esi + eax + 6]
mov byte [ecx + 8], al
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax + 7]
mov dword [ecx + 0xc], eax
mov ecx, dword [edi]
mov eax, dword [ebp + 0x18]
cmp dword [ecx + 0xc], eax
ja 0x413309
mov eax, dword [ebp - 4]
mov al, byte [esi + eax + 0xb]
add esi, 0x14
mov byte [ecx + 0x10], al
mov ecx, dword [ebp + 8]
mov edi, dword [edi]
inc ecx
movzx eax, byte [ebx + 0x20]
add edi, 0x1c
mov dword [ebp + 8], ecx
cmp cx, ax
jb 0x413240
mov esi, dword [ebp + 0x20]
push dword [ebp + 0x24]
lea eax, [ebp - 0x38]
push eax
call fcn.004129a0
add esp, 8
cmp dword [ebx + 0x48], 0x20
ja 0x4135e0
cmp dword [ebx + 0x14], 0x20
ja 0x4135e0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x413625
pop edi
pop esi
mov dword [eax], 8
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x54
jne 0x413115
push 0x84
call fcn.00409565
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x413368
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x413600
push dword [ebp + 0x24]
mov dword [eax], 3
lea eax, [ebp - 0x38]
push eax
call fcn.004129a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x84
push 0
push eax
call fcn.00407790
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x4e]
push dword [ebp + 0x24]
mov dword [ecx + 0x71], eax
mov eax, dword [ebx + 0x52]
mov dword [ecx + 0x75], eax
mov eax, dword [ebx + 0x56]
mov dword [ecx + 0x79], eax
mov eax, dword [ebx + 0x5a]
mov dword [ecx + 0x7d], eax
mov eax, dword [ebp - 8]
mov cl, byte [ebx + 0x4d]
mov byte [eax + 0x70], cl
mov eax, dword [ebp - 4]
movzx ecx, word [edi + eax - 3]
mov eax, dword [ebp - 8]
mov word [eax + 0x6e], cx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edi + ecx - 0xb]
mov dword [edx + 0x66], eax
mov eax, dword [edi + ecx - 7]
mov dword [edx + 0x6a], eax
mov eax, dword [ebp - 4]
movzx ecx, word [edi + eax - 0xd]
mov eax, dword [ebp - 8]
mov word [eax + 0x64], cx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edi + ecx - 0x15]
mov dword [edx + 0x5c], eax
mov eax, dword [edi + ecx - 0x11]
mov dword [edx + 0x60], eax
mov eax, dword [ebp - 8]
add eax, 0x5c
push eax
call fcn.004149f0
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 2
mov ecx, dword [edx]
add ecx, eax
mov dword [edi], ecx
mov ecx, dword [edx]
mov edi, dword [ebp + 0x14]
add ecx, eax
neg ecx
push ecx
push edi
call fcn.0040fc80
add esp, 0x20
cmp eax, 0xffffffff
je 0x4135f3
push esi
push 0
push dword [ebp - 4]
call fcn.00407790
push esi
push dword [ebp - 4]
push edi
call fcn.00410cd7
add esp, 0x18
cmp eax, 0xffffffff
je 0x4135f3
mov edx, dword [ebp - 4]
mov esi, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [edx]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 0xc]
mov edx, str.AVCS4F3A4200C37O
mov dword [eax + 0xc], ecx
mov edi, dword [ebp - 8]
mov ecx, edi
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x413115
add ecx, 4
add edx, 4
sub esi, 4
jae 0x413470
mov eax, dword [ebp - 4]
mov esi, 0x3e
push dword [ebp + 0x24]
mov ax, word [eax + 0x10]
mov word [edi + 0x10], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x12]
mov dword [edx + 0x12], eax
mov eax, dword [ecx + 0x16]
mov dword [edx + 0x16], eax
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x1a]
mov eax, dword [ebp - 8]
mov word [eax + 0x1a], cx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x20]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x24]
mov eax, dword [ebp - 8]
mov word [eax + 0x24], cx
mov eax, dword [ebp - 8]
add eax, 0x24
push eax
call fcn.00414990
mov ecx, dword [ebp - 8]
xor edx, edx
movzx eax, al
add esp, 8
mov dword [ebp + 8], 0
mov word [ebp + 0x1a], ax
lea edi, [ecx + 0x40]
cmp dx, ax
jae 0x41359d
push 0x2c
call fcn.00409565
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x4135b8
push 0x2c
push 0
push eax
call fcn.00407790
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ebp - 4]
movzx eax, word [esi + eax]
mov word [ecx], ax
mov ecx, dword [edi]
mov eax, dword [ebp - 4]
movzx eax, word [esi + eax + 2]
mov word [ecx + 2], ax
mov ecx, dword [ebp - 4]
mov edx, dword [edi]
mov eax, dword [esi + ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [edi]
mov eax, dword [ebp - 4]
movzx eax, word [esi + eax + 0xc]
mov word [ecx + 0xc], ax
mov ecx, dword [ebp - 4]
mov edx, dword [edi]
mov eax, dword [esi + ecx + 0xe]
mov dword [edx + 0xe], eax
mov eax, dword [esi + ecx + 0x12]
mov dword [edx + 0x12], eax
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
mov al, byte [esi + eax + 0x16]
add esi, 0x27
mov byte [ecx + 0x16], al
mov eax, dword [ebp + 8]
mov edi, dword [edi]
inc eax
add edi, 0x28
mov dword [ebp + 8], eax
cmp ax, word [ebp + 0x1a]
jb 0x413506
mov ecx, dword [ebp - 8]
push dword [ebp + 0x24]
mov esi, dword [ebp + 0x20]
push esi
push ebx
push ecx
call fcn.00413ed0
add esp, 0x10
test ax, ax
je 0x413600
jmp 0x4132da
lfence
push dword [ebp + 0x24]
lea eax, [ebp - 0x38]
push eax
call fcn.004129a0
mov eax, dword [ebp + 0x20]
add esp, 8
test eax, eax
je 0x413625
pop edi
pop esi
mov dword [eax], 3
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x413625
pop edi
mov dword [esi], 8
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x413600
mov dword [eax], 0xd
push dword [ebp + 0x24]
lea eax, [ebp - 0x38]
push eax
call fcn.004129a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x413625
mov dword [eax], 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret