Function at 0x4bd9a6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x51f5d0]
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.004c05d0
add esp, 0xc
mov edx, esi
mov dword [ebp - 0x134], edi
call fcn.00485754
test eax, eax
jne 0x4bded7
cmp ebx, edi
je 0x4bded7
push 0x300c
push edi
push ebx
call fcn.004c05d0
add esp, 0xc
push esi
mov ecx, 0x104
lea eax, [ebp - 0x128]
call fcn.00485786
pop ecx
mov edx, eax
call fcn.00486276
mov eax, edx
push eax
mov esi, 0x4de458
call fcn.00485895
mov esi, eax
neg esi
sbb esi, esi
inc esi
pop ecx
mov dword [ebp - 0x130], esi
call fcn.0045fba0
test eax, eax
je 0x4bda64
mov dword [ebp - 0x130], edi
mov esi, edi
cmp esi, edi
mov dword [ebp - 0x140], edi
je 0x4bdb87
push edi
push edi
push edi
push edi
push edi
push 0x19
pop ecx
lea eax, [ebp - 0x20]
call fcn.004404ae
add esp, 0x14
lea edx, [ebp - 0x20]
call fcn.00485754
test eax, eax
jne 0x4bdab1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00486428
test eax, eax
pop ecx
pop ecx
je 0x4bdab1
mov dword [ebp - 0x140], 1
call fcn.004c0a8c
push eax
push edi
push edi
call fcn.0045f7e3
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x128]
push str._stemp_d.sls
push eax
call fcn.004c054e
add esp, 0x10
cmp dword [ebp - 0x140], edi
je 0x4bdaf6
cmp dword [ebp + 0x10], edi
je 0x4bdaf6
push 0x286
push str..GetSalesSa7.c
push 0x40
call fcn.00449056
add esp, 0xc
call fcn.004af84c
mov ecx, dword [ebp - 0x144]
lea edx, [ebp - 0x128]
mov esi, eax
call fcn.0041a19e
test eax, eax
jne 0x4bdb72
mov ecx, dword [ebp - 0x144]
push 0x4e20
call fcn.0041a636
test eax, eax
pop ecx
jne 0x4bdb48
cmp dword [ebp - 0x140], edi
je 0x4bded7
cmp dword [ebp + 0x10], edi
je 0x4bded7
push 0x40
call fcn.00449c8b
jmp 0x4bded6
call fcn.004af84c
sub eax, esi
cmp eax, 0x1388
jae 0x4bdb72
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x144]
lea edx, [ebp - 0x128]
call fcn.0041a19e
cmp dword [ebp - 0x140], edi
je 0x4bdb87
cmp dword [ebp + 0x10], edi
je 0x4bdb87
push 0x40
call fcn.00449c8b
pop ecx
push 0x29c
push str..GetSalesSa7.c
mov edx, 0x4de27c
lea ecx, [ebp - 0x128]
call fcn.0041c35a
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
mov dword [ebp - 0x138], esi
je 0x4bded7
push esi
push 1
lea eax, [ebp - 0x134]
push 4
push eax
call fcn.004c0915
add esp, 0x10
cmp eax, 1
jne 0x4bded0
cmp dword [ebp - 0x134], edi
je 0x4bded0
mov eax, 0x300c
cmp dword [ebp - 0x134], eax
jbe 0x4bdbef
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push esi
add ecx, 0xfffffffc
push ecx
lea eax, [ebx + 4]
push 1
push eax
call fcn.004c0915
mov edi, eax
mov eax, dword [ebp - 0x134]
xor esi, esi
add esp, 0x10
add edi, 4
mov dword [ebx], eax
mov dword [ebx + 0x90], esi
call fcn.004be716
cmp eax, 0x96
jle 0x4bdc37
call fcn.0045fba0
test eax, eax
je 0x4bdc37
call fcn.004be716
mov eax, dword [ebx + 0x8c]
cmp eax, esi
mov dword [ebp - 0x13c], esi
jle 0x4bdd0e
cmp eax, 0x1f4
jg 0x4bdd0e
shl eax, 6
push eax
call fcn.004c0b87
cmp eax, esi
pop ecx
mov dword [ebx + 0x90], eax
je 0x4bdd0e
cmp dword [ebx + 0x8c], esi
mov dword [ebp - 0x13c], 1
mov dword [ebp - 0x12c], esi
jle 0x4bdd0e
push dword [ebp - 0x138]
lea eax, [ebp - 0x134]
push 1
push 4
push eax
call fcn.004c0915
add esp, 0x10
cmp eax, 1
jne 0x4bdd05
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4bdd05
cmp eax, 0x40
ja 0x4bdd05
push dword [ebp - 0x138]
add eax, 0xfffffffc
push 1
push eax
mov eax, dword [ebx + 0x90]
lea eax, [eax + esi + 4]
push eax
call fcn.004c0915
mov edx, dword [ebx + 0x90]
add esp, 0x10
cmp eax, 1
push 0x40
pop ecx
mov dword [esi + edx], ecx
jne 0x4bdd05
add edi, dword [ebp - 0x134]
inc dword [ebp - 0x12c]
mov eax, dword [ebp - 0x12c]
add esi, ecx
cmp eax, dword [ebx + 0x8c]
jl 0x4bdc8a
jmp 0x4bdd0c
and dword [ebp - 0x13c], 0
xor esi, esi
push dword [ebp - 0x138]
call fcn.0041c787
cmp dword [ebp - 0x130], esi
pop ecx
je 0x4bdd2d
lea eax, [ebp - 0x128]
call fcn.0041a0f3
mov ecx, dword [ebx]
xor eax, eax
neg ecx
cmp edi, esi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x138], eax
jle 0x4bddab
mov dword [ebp - 0x130], ebx
sub dword [ebp - 0x130], ecx
cmp eax, 4
jb 0x4bdd59
cmp eax, 8
jb 0x4bdd9a
cmp eax, 0x90
jl 0x4bdd67
cmp eax, 0x94
jl 0x4bdd9a
add eax, ecx
cmp eax, esi
jl 0x4bdd8a
cmp dword [ebp - 0x13c], esi
je 0x4bdd9a
mov edx, dword [ebx + 0x8c]
shl edx, 6
cmp eax, edx
jge 0x4bdd9a
mov edx, dword [ebx + 0x90]
jmp 0x4bdd90
mov edx, dword [ebp - 0x130]
movzx eax, byte [edx + eax]
add dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x138]
inc eax
cmp eax, edi
mov dword [ebp - 0x138], eax
jl 0x4bdd4f
add dword [ebp - 0x12c], edi
cmp dword [ebp - 0x13c], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x20], esi
jne 0x4bdddf
mov eax, dword [ebx + 0x90]
cmp eax, esi
mov dword [ebx + 0x8c], esi
je 0x4bddd9
push eax
call fcn.004bf2a6
pop ecx
mov dword [ebx + 0x90], esi
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebx + 4]
mov dword [ebx], 0x300c
je 0x4bdeba
cmp dword [0x62a3fc], esi
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x8c], esi
jne 0x4bdea1
cmp eax, esi
je 0x4bde17
push eax
call fcn.004bf2a6
pop ecx
cmp dword [ebp - 0x140], esi
mov dword [ebx + 0x90], esi
mov dword [ebp - 0x130], esi
je 0x4bde50
cmp dword [ebp + 0x10], esi
jne 0x4bde50
push esi
push 0x40
call fcn.00448fab
test eax, eax
pop ecx
pop ecx
je 0x4bde50
push 0x40
mov dword [ebp - 0x130], 1
call fcn.00449c8b
pop ecx
push 0x368
mov edi, str..GetSalesSa7.c
push edi
push 0x40
call fcn.00446538
add esp, 0xc
cmp dword [ebp - 0x130], esi
je 0x4bde7d
push 0x36a
push edi
push 0x40
call fcn.00449056
add esp, 0xc
push dword [ebp + 0x10]
mov dword [0x62a3fc], 1
push dword [ebp - 0x144]
push ebx
call fcn.004bd9a6
add esp, 0xc
mov dword [0x62a3fc], esi
jmp 0x4bded9
cmp eax, esi
je 0x4bdeac
push eax
call fcn.004bf2a6
pop ecx
inc byte [0x52992a]
mov dword [ebx + 0x90], esi
jmp 0x4bded7
mov ebx, dword [ebx + 0x90]
cmp ebx, esi
je 0x4bdecb
push ebx
call fcn.004be6a8
pop ecx
xor eax, eax
inc eax
jmp 0x4bded9
push esi
call fcn.0041c787
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret