Function at 0x4a4acd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 4], 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, [ebp - 0x1f]
mov byte [ebp - 0x20], 0
rep stosd dword es:[edi], eax
push 0x103
mov byte [ebp - 0x128], al
xor edi, edi
lea eax, [ebp - 0x127]
push edi
push eax
mov dword [ebp - 0x144], esi
call fcn.004a8c80
add esp, 0xc
mov edx, esi
mov dword [ebp - 0x130], edi
call fcn.00477a16
test eax, eax
jne 0x4a4ff6
cmp ebx, edi
je 0x4a4ff6
push 0x300c
push edi
push ebx
call fcn.004a8c80
add esp, 0xc
push esi
mov ecx, 0x104
lea eax, [ebp - 0x128]
call fcn.00477a48
pop ecx
mov edx, eax
call fcn.00478435
mov eax, edx
push eax
mov esi, 0x4c73ec
call fcn.00477b57
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp esi, edi
pop ecx
mov dword [ebp - 0x140], edi
je 0x4a4ca0
push edi
push edi
push edi
push edi
push edi
push 0x19
pop ecx
lea eax, [ebp - 0x20]
call fcn.0043d90c
add esp, 0x14
lea edx, [ebp - 0x20]
call fcn.00477a16
test eax, eax
jne 0x4a4bc1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.004785e7
test eax, eax
pop ecx
pop ecx
je 0x4a4bc1
mov dword [ebp - 0x140], 1
call fcn.004a913c
push eax
push edi
push edi
call fcn.0045bc06
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x128]
push str._stemp_d.sls
push eax
call fcn.004a8bfe
add esp, 0x10
cmp dword [ebp - 0x140], edi
je 0x4a4c06
cmp dword [ebp + 0x10], edi
je 0x4a4c06
push 0x286
push str..GetSalesSa7.c
push 0x40
call fcn.00445dad
add esp, 0xc
call fcn.0049a965
mov ecx, dword [ebp - 0x144]
lea edx, [ebp - 0x128]
mov dword [ebp - 0x134], eax
call fcn.00419a4c
test eax, eax
jne 0x4a4c8b
mov ecx, dword [ebp - 0x144]
push 0x4e20
call fcn.00419ee4
test eax, eax
pop ecx
jne 0x4a4c5d
cmp dword [ebp - 0x140], edi
je 0x4a4ff6
cmp dword [ebp + 0x10], edi
je 0x4a4ff6
push 0x40
call fcn.004469e1
pop ecx
jmp 0x4a4ff6
call fcn.0049a965
sub eax, dword [ebp - 0x134]
cmp eax, 0x1388
jae 0x4a4c8b
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x144]
lea edx, [ebp - 0x128]
call fcn.00419a4c
cmp dword [ebp - 0x140], edi
je 0x4a4ca0
cmp dword [ebp + 0x10], edi
je 0x4a4ca0
push 0x40
call fcn.004469e1
pop ecx
push 0x29c
push str..GetSalesSa7.c
mov edx, 0x4c722c
lea ecx, [ebp - 0x128]
call fcn.0041bb64
mov edi, eax
test edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x134], edi
je 0x4a4ff6
push edi
push 1
lea eax, [ebp - 0x130]
push 4
push eax
call fcn.004a8fc5
add esp, 0x10
cmp eax, 1
jne 0x4a4fef
cmp dword [ebp - 0x130], 0
je 0x4a4fef
mov eax, 0x300c
cmp dword [ebp - 0x130], eax
jbe 0x4a4d09
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
push edi
add ecx, 0xfffffffc
push ecx
lea eax, [ebx + 4]
push 1
push eax
call fcn.004a8fc5
and dword [ebx + 0x90], 0
mov edi, eax
mov eax, dword [ebp - 0x130]
add esp, 0x10
add edi, 4
mov dword [ebx], eax
call fcn.004a57da
mov eax, dword [ebx + 0x8c]
and dword [ebp - 0x13c], 0
test eax, eax
jle 0x4a4e38
cmp eax, 0x1f4
jg 0x4a4e38
shl eax, 6
push eax
call fcn.004a9237
test eax, eax
pop ecx
mov dword [ebx + 0x90], eax
je 0x4a4e38
and dword [ebp - 0x138], 0
cmp dword [ebx + 0x8c], 0
mov dword [ebp - 0x13c], 1
jle 0x4a4e38
and dword [ebp - 0x12c], 0
push dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push 1
push 4
push eax
call fcn.004a8fc5
add esp, 0x10
cmp eax, 1
jne 0x4a4e31
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x4a4e31
cmp eax, 0x40
ja 0x4a4e31
push dword [ebp - 0x134]
mov ecx, dword [ebp - 0x12c]
add eax, 0xfffffffc
push 1
push eax
mov eax, dword [ebx + 0x90]
lea eax, [ecx + eax + 4]
push eax
call fcn.004a8fc5
mov edx, dword [ebp - 0x12c]
add esp, 0x10
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 1
mov eax, dword [ebx + 0x90]
push 0x40
pop ecx
mov dword [edx + eax], ecx
jne 0x4a4e31
add edi, dword [ebp - 0x130]
inc dword [ebp - 0x138]
mov eax, dword [ebp - 0x138]
add dword [ebp - 0x12c], ecx
cmp eax, dword [ebx + 0x8c]
jl 0x4a4d98
jmp 0x4a4e38
and dword [ebp - 0x13c], 0
mov ecx, dword [ebp - 0x134]
call fcn.0041bf91
xor edx, edx
cmp esi, edx
je 0x4a4e56
lea eax, [ebp - 0x128]
call fcn.004199a1
xor edx, edx
mov ecx, dword [ebx]
xor eax, eax
neg ecx
cmp edi, edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x138], eax
jle 0x4a4ed8
mov dword [ebp - 0x134], ebx
sub dword [ebp - 0x134], ecx
cmp eax, 4
jb 0x4a4e82
cmp eax, 8
jb 0x4a4ec7
cmp eax, 0x90
jl 0x4a4e90
cmp eax, 0x94
jl 0x4a4ec7
add eax, ecx
cmp eax, edx
jl 0x4a4eb7
cmp dword [ebp - 0x13c], edx
je 0x4a4ec7
mov esi, dword [ebx + 0x8c]
shl esi, 6
cmp eax, esi
jge 0x4a4ec7
mov esi, dword [ebx + 0x90]
movzx eax, byte [eax + esi]
jmp 0x4a4ec1
mov esi, dword [ebp - 0x134]
movzx eax, byte [esi + eax]
add dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x138]
inc eax
cmp eax, edi
mov dword [ebp - 0x138], eax
jl 0x4a4e78
mov esi, dword [ebp - 0x12c]
add esi, edi
cmp dword [ebp - 0x13c], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x20], edx
jne 0x4a4f10
mov eax, dword [ebx + 0x90]
cmp eax, edx
mov dword [ebx + 0x8c], edx
je 0x4a4f0a
push eax
call fcn.004a795c
pop ecx
xor edx, edx
mov dword [ebx + 0x90], edx
cmp esi, dword [ebx + 4]
mov dword [ebx], 0x300c
je 0x4a4fd9
cmp dword [0x615ea4], edx
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x8c], edx
jne 0x4a4fbe
cmp eax, edx
je 0x4a4f44
push eax
call fcn.004a795c
pop ecx
xor edx, edx
xor edi, edi
cmp dword [ebp - 0x140], edx
mov dword [ebx + 0x90], edx
je 0x4a4f70
cmp dword [ebp + 0x10], edx
jne 0x4a4f70
push edx
push 0x40
call fcn.00445d02
test eax, eax
pop ecx
pop ecx
je 0x4a4f70
push 0x40
inc edi
call fcn.004469e1
pop ecx
push 0x368
mov esi, str..GetSalesSa7.c
push esi
push 0x40
call fcn.0044337f
add esp, 0xc
test edi, edi
je 0x4a4f99
push 0x36a
push esi
push 0x40
call fcn.00445dad
add esp, 0xc
push dword [ebp + 0x10]
mov dword [0x615ea4], 1
push dword [ebp - 0x144]
push ebx
call fcn.004a4acd
add esp, 0xc
and dword [0x615ea4], 0
jmp 0x4a4ff8
cmp eax, edx
je 0x4a4fcb
push eax
call fcn.004a795c
pop ecx
xor edx, edx
inc byte [0x5193a7]
mov dword [ebx + 0x90], edx
jmp 0x4a4ff6
mov ebx, dword [ebx + 0x90]
cmp ebx, edx
je 0x4a4fea
push ebx
call fcn.004a576c
pop ecx
xor eax, eax
inc eax
jmp 0x4a4ff8
mov ecx, edi
call fcn.0041bf91
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret