Function at 0x416def
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4b22d4]
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.00401f80
add esp, 0xc
mov edx, esi
mov dword [ebp - 0x130], edi
call fcn.00436c5d
test eax, eax
jne 0x4172fb
cmp ebx, edi
je 0x4172fb
push 0x300c
push edi
push ebx
call fcn.00401f80
add esp, 0xc
push esi
mov ecx, 0x104
lea eax, [ebp - 0x128]
call fcn.00435b27
pop ecx
mov edx, eax
call fcn.0043680a
mov eax, edx
push eax
mov esi, 0x48d234
call fcn.00435ab2
mov esi, eax
neg esi
sbb esi, esi
inc esi
pop ecx
mov dword [ebp - 0x140], edi
cmp esi, edi
je 0x416fc2
push edi
push edi
push edi
push edi
push edi
push 0x19
pop ecx
lea eax, [ebp - 0x20]
call fcn.0045afb0
add esp, 0x14
lea edx, [ebp - 0x20]
call fcn.00436c5d
test eax, eax
jne 0x416ee3
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.004365f4
pop ecx
pop ecx
test eax, eax
je 0x416ee3
mov dword [ebp - 0x140], 1
call fcn.0040237f
push eax
push edi
push edi
call fcn.0044bf6e
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x128]
push str._stemp_d.sls
push eax
call fcn.00401954
add esp, 0x10
cmp dword [ebp - 0x140], edi
je 0x416f28
cmp dword [ebp + 0x10], edi
je 0x416f28
push 0x286
push str.GetSalesSa7.c
push 0x40
call fcn.0045f6b5
add esp, 0xc
call fcn.00419a8b
mov ecx, dword [ebp - 0x144]
lea edx, [ebp - 0x128]
mov dword [ebp - 0x134], eax
call fcn.0047575e
test eax, eax
jne 0x416fad
mov ecx, dword [ebp - 0x144]
push 0x4e20
call fcn.00474dec
pop ecx
test eax, eax
jne 0x416f7f
cmp dword [ebp - 0x140], edi
je 0x4172fb
cmp dword [ebp + 0x10], edi
je 0x4172fb
push 0x40
call fcn.0045c4f7
pop ecx
jmp 0x4172fb
call fcn.00419a8b
sub eax, dword [ebp - 0x134]
cmp eax, 0x1388
jae 0x416fad
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x144]
lea edx, [ebp - 0x128]
call fcn.0047575e
cmp dword [ebp - 0x140], edi
je 0x416fc2
cmp dword [ebp + 0x10], edi
je 0x416fc2
push 0x40
call fcn.0045c4f7
pop ecx
push 0x29c
push str.GetSalesSa7.c
mov edx, 0x48d1ec
lea ecx, [ebp - 0x128]
call fcn.00473c34
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x134], edi
test edi, edi
je 0x4172fb
push edi
push 1
lea eax, [ebp - 0x130]
push 4
push eax
call fcn.00402244
add esp, 0x10
cmp eax, 1
jne 0x4172f4
cmp dword [ebp - 0x130], 0
je 0x4172f4
mov eax, 0x300c
cmp dword [ebp - 0x130], eax
jbe 0x41702b
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.00402244
and dword [ebx + 0x90], 0
lea edi, [eax + 4]
mov eax, dword [ebp - 0x130]
add esp, 0x10
mov dword [ebx], eax
call fcn.00416a39
mov eax, dword [ebx + 0x8c]
and dword [ebp - 0x13c], 0
test eax, eax
jle 0x417158
cmp eax, 0x1f4
jg 0x417158
shl eax, 6
push eax
call fcn.004028f8
pop ecx
mov dword [ebx + 0x90], eax
test eax, eax
je 0x417158
and dword [ebp - 0x138], 0
cmp dword [ebx + 0x8c], 0
mov dword [ebp - 0x13c], 1
jle 0x417158
and dword [ebp - 0x12c], 0
push dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push 1
push 4
push eax
call fcn.00402244
add esp, 0x10
cmp eax, 1
jne 0x417151
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x417151
cmp eax, 0x40
ja 0x417151
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.00402244
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 0x417151
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 0x4170b8
jmp 0x417158
and dword [ebp - 0x13c], 0
mov ecx, dword [ebp - 0x134]
call fcn.00475e84
xor edx, edx
cmp esi, edx
je 0x417176
lea eax, [ebp - 0x128]
call fcn.00474fee
xor edx, edx
mov ecx, dword [ebx]
xor eax, eax
neg ecx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x138], eax
cmp edi, edx
jle 0x4171f8
mov dword [ebp - 0x134], ebx
sub dword [ebp - 0x134], ecx
cmp eax, 4
jb 0x4171a2
cmp eax, 8
jb 0x4171e7
cmp eax, 0x90
jl 0x4171b0
cmp eax, 0x94
jl 0x4171e7
add eax, ecx
cmp eax, edx
jl 0x4171d7
cmp dword [ebp - 0x13c], edx
je 0x4171e7
mov esi, dword [ebx + 0x8c]
shl esi, 6
cmp eax, esi
jge 0x4171e7
mov esi, dword [ebx + 0x90]
movzx eax, byte [eax + esi]
jmp 0x4171e1
mov esi, dword [ebp - 0x134]
movzx eax, byte [esi + eax]
add dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x138]
inc eax
mov dword [ebp - 0x138], eax
cmp eax, edi
jl 0x417198
mov esi, dword [ebp - 0x12c]
add esi, edi
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x20], edx
cmp dword [ebp - 0x13c], edx
jne 0x417230
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x8c], edx
cmp eax, edx
je 0x41722a
push eax
call fcn.00401a00
pop ecx
xor edx, edx
mov dword [ebx + 0x90], edx
mov dword [ebx], 0x300c
cmp esi, dword [ebx + 4]
je 0x4172de
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x8c], edx
cmp dword [0x5bc380], edx
jne 0x4172c3
cmp eax, edx
je 0x417260
push eax
call fcn.00401a00
pop ecx
xor edx, edx
mov dword [ebx + 0x90], edx
cmp dword [ebp - 0x140], edx
je 0x41729e
cmp dword [ebp + 0x10], edx
jne 0x41729e
push edx
push 0x40
call fcn.0045c44c
pop ecx
pop ecx
test eax, eax
je 0x41729e
push 0x40
call fcn.0045c4f7
mov dword [esp], 0x36a
push str.GetSalesSa7.c
push 0x40
call fcn.0045f6b5
add esp, 0xc
push dword [ebp + 0x10]
mov dword [0x5bc380], 1
push dword [ebp - 0x144]
push ebx
call fcn.00416def
add esp, 0xc
and dword [0x5bc380], 0
jmp 0x4172fd
cmp eax, edx
je 0x4172d0
push eax
call fcn.00401a00
pop ecx
xor edx, edx
inc byte [0x4c5a89]
mov dword [ebx + 0x90], edx
jmp 0x4172fb
mov ebx, dword [ebx + 0x90]
cmp ebx, edx
je 0x4172ef
push ebx
call fcn.00416a47
pop ecx
xor eax, eax
inc eax
jmp 0x4172fd
mov ecx, edi
call fcn.00475e84
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret