Function at 0x4a913b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x5065d0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 6
pop ecx
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
push 0x103
mov byte [esp + 0x4c], al
xor edi, edi
lea eax, [esp + 0x4d]
push edi
push eax
mov dword [esp + 0x30], esi
call fcn.004ab5d0
add esp, 0xc
mov edx, esi
mov dword [esp + 0x14], edi
call fcn.00476b3a
test eax, eax
jne 0x4a95fa
cmp ebx, edi
je 0x4a95fa
push 0x300c
push edi
push ebx
call fcn.004ab5d0
add esp, 0xc
push esi
mov ecx, 0x104
lea eax, [esp + 0x4c]
call fcn.00476b6c
pop ecx
mov edx, eax
call fcn.00477617
mov eax, edx
push eax
mov esi, 0x4c93bc
call fcn.00476c7b
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp esi, edi
pop ecx
mov dword [esp + 0x20], edi
je 0x4a92f8
push edi
push edi
push edi
push edi
push edi
push 0x19
pop ecx
lea eax, [esp + 0x40]
call fcn.0043ed90
add esp, 0x14
lea edx, [esp + 0x2c]
call fcn.00476b3a
test eax, eax
jne 0x4a922b
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004777c9
test eax, eax
pop ecx
pop ecx
je 0x4a922b
mov dword [esp + 0x20], 1
call fcn.004aba8c
push eax
push edi
push edi
call fcn.0045ac28
pop ecx
pop ecx
push eax
lea eax, [esp + 0x50]
push str._stemp_d.sls
push eax
call fcn.004ab54e
add esp, 0x10
cmp dword [esp + 0x20], edi
je 0x4a926c
cmp dword [ebp + 0x10], edi
je 0x4a926c
push 0x286
push str..GetSalesSa7.c
push 0x40
call fcn.004449ae
add esp, 0xc
call fcn.0049c471
mov ecx, dword [esp + 0x24]
push edi
lea edx, [esp + 0x4c]
mov dword [esp + 0x14], eax
call fcn.0041a1eb
test eax, eax
pop ecx
jne 0x4a92e5
mov ecx, dword [esp + 0x24]
push 0x4e20
call fcn.0041a6f4
test eax, eax
pop ecx
jne 0x4a92bb
cmp dword [esp + 0x20], edi
je 0x4a95fa
cmp dword [ebp + 0x10], edi
je 0x4a95fa
push 0x40
call fcn.00445606
pop ecx
jmp 0x4a95fa
call fcn.0049c471
sub eax, dword [esp + 0x10]
cmp eax, 0x1388
jae 0x4a92e5
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x24]
push edi
lea edx, [esp + 0x4c]
call fcn.0041a1eb
pop ecx
cmp dword [esp + 0x20], edi
je 0x4a92f8
cmp dword [ebp + 0x10], edi
je 0x4a92f8
push 0x40
call fcn.00445606
pop ecx
push 0x29c
push str..GetSalesSa7.c
mov edx, 0x4c91fc
lea ecx, [esp + 0x50]
call fcn.0041c646
mov edi, eax
test edi, edi
pop ecx
pop ecx
mov dword [esp + 0x10], edi
je 0x4a95fa
push edi
push 1
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.004ab915
add esp, 0x10
cmp eax, 1
jne 0x4a95f3
cmp dword [esp + 0x14], 0
je 0x4a95f3
mov eax, 0x300c
cmp dword [esp + 0x14], eax
jbe 0x4a9355
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push edi
add ecx, 0xfffffffc
push ecx
lea eax, [ebx + 4]
push 1
push eax
call fcn.004ab915
and dword [ebx + 0x90], 0
mov edi, eax
mov eax, dword [esp + 0x24]
add esp, 0x10
add edi, 4
mov dword [ebx], eax
call fcn.004a9e2e
mov eax, dword [ebx + 0x8c]
and dword [esp + 0x18], 0
test eax, eax
jle 0x4a945a
cmp eax, 0x1f4
jg 0x4a945a
shl eax, 6
push eax
call fcn.004abb87
test eax, eax
pop ecx
mov dword [ebx + 0x90], eax
je 0x4a945a
and dword [esp + 0x1c], 0
cmp dword [ebx + 0x8c], 0
mov dword [esp + 0x18], 1
jle 0x4a945a
and dword [esp + 0xc], 0
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push 1
push 4
push eax
call fcn.004ab915
add esp, 0x10
cmp eax, 1
jne 0x4a9455
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a9455
cmp eax, 0x40
ja 0x4a9455
push dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
add eax, 0xfffffffc
push 1
push eax
mov eax, dword [ebx + 0x90]
lea eax, [ecx + eax + 4]
push eax
call fcn.004ab915
mov edx, dword [esp + 0x1c]
add esp, 0x10
mov dword [esp + 0x28], eax
cmp dword [esp + 0x28], 1
mov eax, dword [ebx + 0x90]
push 0x40
pop ecx
mov dword [edx + eax], ecx
jne 0x4a9455
add edi, dword [esp + 0x14]
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
add dword [esp + 0xc], ecx
cmp eax, dword [ebx + 0x8c]
jl 0x4a93d8
jmp 0x4a945a
and dword [esp + 0x18], 0
mov ecx, dword [esp + 0x10]
call fcn.0041ca73
xor edx, edx
cmp esi, edx
je 0x4a9474
lea eax, [esp + 0x48]
call fcn.0041a140
xor edx, edx
mov ecx, dword [ebx]
xor eax, eax
neg ecx
cmp edi, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], eax
jle 0x4a94e4
mov dword [esp + 0x10], ebx
sub dword [esp + 0x10], ecx
cmp eax, 4
jb 0x4a9498
cmp eax, 8
jb 0x4a94d7
cmp eax, 0x90
jl 0x4a94a6
cmp eax, 0x94
jl 0x4a94d7
add eax, ecx
cmp eax, edx
jl 0x4a94cb
cmp dword [esp + 0x18], edx
je 0x4a94d7
mov esi, dword [ebx + 0x8c]
shl esi, 6
cmp eax, esi
jge 0x4a94d7
mov esi, dword [ebx + 0x90]
movzx eax, byte [eax + esi]
jmp 0x4a94d3
mov esi, dword [esp + 0x10]
movzx eax, byte [esi + eax]
add dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, edi
mov dword [esp + 0x1c], eax
jl 0x4a948e
mov esi, dword [esp + 0xc]
add esi, edi
cmp dword [esp + 0x18], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x20], edx
jne 0x4a9518
mov eax, dword [ebx + 0x90]
cmp eax, edx
mov dword [ebx + 0x8c], edx
je 0x4a9512
push eax
call fcn.004aa2a8
pop ecx
xor edx, edx
mov dword [ebx + 0x90], edx
cmp esi, dword [ebx + 4]
mov dword [ebx], 0x300c
je 0x4a95dd
cmp dword [0x6186d8], edx
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x8c], edx
jne 0x4a95c2
cmp eax, edx
je 0x4a954c
push eax
call fcn.004aa2a8
pop ecx
xor edx, edx
xor edi, edi
cmp dword [esp + 0x20], edx
mov dword [ebx + 0x90], edx
je 0x4a9576
cmp dword [ebp + 0x10], edx
jne 0x4a9576
push edx
push 0x40
call fcn.00444903
test eax, eax
pop ecx
pop ecx
je 0x4a9576
push 0x40
inc edi
call fcn.00445606
pop ecx
push 0x368
mov esi, str..GetSalesSa7.c
push esi
push 0x40
call fcn.00441f38
add esp, 0xc
test edi, edi
je 0x4a959f
push 0x36a
push esi
push 0x40
call fcn.004449ae
add esp, 0xc
push dword [ebp + 0x10]
mov dword [0x6186d8], 1
push dword [esp + 0x28]
push ebx
call fcn.004a913b
add esp, 0xc
and dword [0x6186d8], 0
jmp 0x4a95fc
cmp eax, edx
je 0x4a95cf
push eax
call fcn.004aa2a8
pop ecx
xor edx, edx
inc byte [0x51d1f2]
mov dword [ebx + 0x90], edx
jmp 0x4a95fa
mov ebx, dword [ebx + 0x90]
cmp ebx, edx
je 0x4a95ee
push ebx
call fcn.004a9dc0
pop ecx
xor eax, eax
inc eax
jmp 0x4a95fc
mov ecx, edi
call fcn.0041ca73
xor eax, eax
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004aaeb5
mov esp, ebp
pop ebp
ret