Function at 0x41721a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x103
xor ebx, ebx
lea eax, [ebp - 0x127]
push ebx
push eax
mov dword [ebp - 0x140], esi
mov byte [ebp - 0x128], 0
call fcn.00401f80
add esp, 0xc
mov edx, esi
mov dword [ebp - 0x130], ebx
call fcn.00429ac3
test eax, eax
jne 0x417634
cmp edi, ebx
je 0x417634
push 0x300c
push ebx
push edi
call fcn.00401f80
add esp, 0xc
push esi
mov ecx, 0x104
lea eax, [ebp - 0x128]
call fcn.00428a08
pop ecx
mov edx, eax
call fcn.004296d6
mov eax, edx
push eax
mov esi, 0x46f61c
call fcn.00428993
pop ecx
test eax, eax
jne 0x4174bc
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x19
pop ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x13c], 1
call fcn.00447069
add esp, 0x14
call fcn.0040237f
push eax
push ebx
push ebx
call fcn.0043b3a3
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x128]
push str._stemp_d.sls
push eax
call fcn.00401954
add esp, 0x10
call fcn.004182de
mov ecx, dword [ebp - 0x140]
lea edx, [ebp - 0x128]
mov esi, eax
call fcn.00459bda
test eax, eax
jne 0x417355
mov ecx, dword [ebp - 0x140]
push 0x4e20
call fcn.00459268
pop ecx
test eax, eax
je 0x417634
call fcn.004182de
sub eax, esi
cmp eax, 0x1388
jae 0x417355
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x140]
lea edx, [ebp - 0x128]
call fcn.00459bda
push 0x29c
push str.GetSalesSa7.c
mov edx, 0x46f5ac
lea ecx, [ebp - 0x128]
call fcn.004580b0
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x134], esi
cmp esi, ebx
je 0x417634
push esi
push 1
lea eax, [ebp - 0x130]
push 4
push eax
call fcn.00402244
add esp, 0x10
cmp eax, 1
jne 0x41762d
cmp dword [ebp - 0x130], ebx
je 0x41762d
mov eax, 0x300c
cmp dword [ebp - 0x130], eax
jbe 0x4173bd
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
push esi
add ecx, 0xfffffffc
push ecx
lea eax, [edi + 4]
push 1
push eax
call fcn.00402244
lea esi, [eax + 4]
mov eax, dword [ebp - 0x130]
add esp, 0x10
mov dword [edi], eax
mov dword [edi + 0x90], ebx
call fcn.00416e69
mov dword [ebp - 0x138], ebx
mov ebx, dword [edi + 0x8c]
test ebx, ebx
jle 0x4174ce
cmp ebx, 0x1f4
jg 0x4174ce
mov eax, ebx
shl eax, 6
push eax
call fcn.004028f8
pop ecx
mov dword [edi + 0x90], eax
test eax, eax
je 0x4174ce
and dword [ebp - 0x12c], 0
mov dword [ebp - 0x138], 1
test ebx, ebx
jle 0x4174ce
xor ebx, ebx
push dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push 1
push 4
push eax
call fcn.00402244
add esp, 0x10
cmp eax, 1
jne 0x4174c7
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x4174c7
cmp eax, 0x40
ja 0x4174c7
push dword [ebp - 0x134]
add eax, 0xfffffffc
push 1
push eax
mov eax, dword [edi + 0x90]
lea eax, [ebx + eax + 4]
push eax
call fcn.00402244
mov edx, dword [edi + 0x90]
add esp, 0x10
push 0x40
pop ecx
mov dword [ebx + edx], ecx
cmp eax, 1
jne 0x4174c7
add esi, dword [ebp - 0x130]
inc dword [ebp - 0x12c]
mov eax, dword [ebp - 0x12c]
add ebx, ecx
cmp eax, dword [edi + 0x8c]
jl 0x417441
jmp 0x4174ce
mov dword [ebp - 0x13c], ebx
jmp 0x417355
and dword [ebp - 0x138], 0
mov ecx, dword [ebp - 0x134]
call fcn.0045a2fe
xor ebx, ebx
cmp dword [ebp - 0x13c], ebx
je 0x4174ee
lea eax, [ebp - 0x128]
call fcn.0045946a
mov ecx, dword [edi]
xor eax, eax
neg ecx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x13c], eax
cmp esi, ebx
jle 0x417570
mov dword [ebp - 0x134], edi
sub dword [ebp - 0x134], ecx
cmp eax, 4
jb 0x41751a
cmp eax, 8
jb 0x41755f
cmp eax, 0x90
jl 0x417528
cmp eax, 0x94
jl 0x41755f
add eax, ecx
cmp eax, ebx
jl 0x41754f
cmp dword [ebp - 0x138], ebx
je 0x41755f
mov edx, dword [edi + 0x8c]
shl edx, 6
cmp eax, edx
jge 0x41755f
mov edx, dword [edi + 0x90]
movzx eax, byte [eax + edx]
jmp 0x417559
mov edx, dword [ebp - 0x134]
movzx eax, byte [edx + eax]
add dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x13c]
inc eax
mov dword [ebp - 0x13c], eax
cmp eax, esi
jl 0x417510
add dword [ebp - 0x12c], esi
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x20], ebx
cmp dword [ebp - 0x138], ebx
jne 0x4175a4
mov eax, dword [edi + 0x90]
mov dword [edi + 0x8c], ebx
cmp eax, ebx
je 0x41759e
push eax
call fcn.00401a00
pop ecx
mov dword [edi + 0x90], ebx
mov eax, dword [ebp - 0x12c]
mov dword [edi], 0x300c
cmp eax, dword [edi + 4]
je 0x417617
mov eax, dword [edi + 0x90]
mov dword [edi + 0x8c], ebx
cmp dword [0x590ecc], ebx
jne 0x4175fe
cmp eax, ebx
je 0x4175d4
push eax
call fcn.00401a00
pop ecx
push dword [ebp + 0x10]
mov dword [edi + 0x90], ebx
push dword [ebp - 0x140]
mov dword [0x590ecc], 1
push edi
call fcn.0041721a
add esp, 0xc
mov dword [0x590ecc], ebx
jmp 0x417636
cmp eax, ebx
je 0x417609
push eax
call fcn.00401a00
pop ecx
inc byte [0x49a6ee]
mov dword [edi + 0x90], ebx
jmp 0x417634
mov edi, dword [edi + 0x90]
cmp edi, ebx
je 0x417628
push edi
call fcn.00416e77
pop ecx
xor eax, eax
inc eax
jmp 0x417636
mov ecx, esi
call fcn.0045a2fe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret