Function at 0x4d3c20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f758d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xfc], 0x4fd088
push esi
push edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xf8], 0x513abc
mov dword [ebp - 0xf4], 0x513ac0
mov dword [ebp - 0xf0], 0x513ad8
mov dword [ebp - 0xec], 0x513adc
mov dword [ebp - 0xe8], 0x513adc
mov dword [ebp - 0xe4], 0x513adc
mov dword [ebp - 0xe0], 0x513adc
mov dword [ebp - 0xdc], 0x513adc
mov dword [ebp - 0xd8], 0x513adc
mov dword [ebp - 0xd4], 0x513adc
mov dword [ebp - 0xd0], 0x513adc
mov dword [ebp - 0xcc], 0x513adc
mov dword [ebp - 0xc8], 0x513adc
mov dword [ebp - 0xc4], 0x513adc
mov dword [ebp - 0xc0], 0x513adc
mov dword [ebp - 0xbc], 0x513adc
mov dword [ebp - 0xb8], 0x513adc
mov dword [ebp - 0xb4], 0x513adc
mov dword [ebp - 0xb0], 0x513adc
mov dword [ebp - 0xac], 0x513adc
mov dword [ebp - 0xa8], 0x513abc
mov dword [ebp - 0xa4], 0x513ac0
mov dword [ebp - 0xa0], 0x513ad8
mov dword [ebp - 0x9c], 0x513adc
mov dword [ebp - 0x98], 0x513adc
mov dword [ebp - 0x94], 0x513adc
mov dword [ebp - 0x90], 0x513adc
mov dword [ebp - 0x8c], 0x513adc
mov dword [ebp - 0x88], 0x513adc
mov dword [ebp - 0x84], 0x513adc
mov dword [ebp - 0x80], 0x513abc
mov dword [ebp - 0x5c], 0x4fd088
mov dword [ebp - 0x58], str.January
mov dword [ebp - 0x54], str.February
mov dword [ebp - 0x50], str.March
mov dword [ebp - 0x4c], str.April
mov dword [ebp - 0x48], 0x513ae0
mov dword [ebp - 0x44], str.June
mov dword [ebp - 0x40], str.July
mov dword [ebp - 0x3c], str.August
mov dword [ebp - 0x38], str.September
mov dword [ebp - 0x34], str.October
mov dword [ebp - 0x30], str.November
mov dword [ebp - 0x2c], str.December
mov dword [ebp - 0x7c], 0x4fd088
mov dword [ebp - 0x78], str.Sunday
mov dword [ebp - 0x74], str.Monday
mov dword [ebp - 0x70], str.Tuesday
mov dword [ebp - 0x6c], str.Wednesday
mov dword [ebp - 0x68], str.Thursday
mov dword [ebp - 0x64], str.Friday
mov dword [ebp - 0x60], str.Saturday
mov dword [ebp - 0x110], 0x4fd088
mov dword [ebp - 0x10c], str.March
mov dword [ebp - 0x108], str.June
mov dword [ebp - 0x104], str.September
mov dword [ebp - 0x100], str.December
mov dword [ebx + 0xe0], eax
call fcn.004d3b60
mov esi, dword [ebp + 0xc]
movzx eax, word [esi]
lea edx, [esi + 2]
mov dword [ebx], eax
lea eax, [ebx + 4]
test edx, edx
jne 0x4d3e6c
xor ecx, ecx
jmp 0x4d3e7d
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d3e71
sub ecx, edi
lea eax, [ebx + 4]
push ecx
push edx
mov ecx, eax
call fcn.00401820
movzx eax, word [esi + 0x21]
lea ecx, [ebx + 0x30]
push dword [ebp + 0x10]
mov word [ebx + 0x14], ax
movzx eax, byte [esi + 0x23]
mov byte [ebx + 0x16], al
cmp byte [esi + 0x24], 0
setne al
mov byte [ebx + 0x17], al
call fcn.00401680
movzx eax, byte [esi + 0x46]
lea ecx, [ebx + 0xc]
mov byte [ebx + 0x24], al
movzx eax, byte [esi + 0x47]
push 0x15
push str.RAJAR_Ipsos_MORI_RSMB
mov word [ebx + 0x26], ax
call fcn.00401820
push 5
lea ecx, [ebx + 0x10]
push str.RAJAR
call fcn.00401820
add esi, 0x30
call fcn.00401bb0
mov ecx, eax
test ecx, ecx
je 0x4d4528
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x4d3f2b
test esi, 0xffff0000
jne 0x4d3f15
movzx eax, si
lea ecx, [ebp + 8]
push eax
call fcn.004062a0
jmp 0x4d3f37
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d3f20
sub ecx, edx
jmp 0x4d3f2d
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp + 8]
call fcn.00401820
push 4
push 6
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
call fcn.00434910
mov ebx, eax
push 2
push 3
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 8]
call fcn.00434910
mov esi, eax
push 2
push 0
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 8]
call fcn.00434910
mov byte [ebp - 4], 4
push dword [ebx]
mov esi, dword [esi]
mov edi, dword [eax]
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
call ebx
add esp, 4
push eax
push esi
call ebx
add esp, 4
mov eax, dword [ebp + eax*4 - 0x5c]
push eax
push edi
call ebx
add esp, 4
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x1c
push str._d__s__d
push eax
call fcn.004063e0
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp + 0x10]
add esp, 0x14
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d3fd7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d3ff5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d4013
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0x3b
jne 0x4d401f
xor ecx, ecx
jmp 0x4d402d
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d4024
sub ecx, esi
push ecx
push edx
lea ecx, [ebp + 8]
call fcn.00401820
push 4
push 6
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.00434910
mov ebx, eax
push 2
push 3
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp + 8]
call fcn.00434910
mov esi, eax
push 2
push 0
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp + 8]
call fcn.00434910
mov byte [ebp - 4], 7
push dword [ebx]
mov esi, dword [esi]
mov edi, dword [eax]
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
call ebx
add esp, 4
push eax
push esi
call ebx
add esp, 4
mov eax, dword [ebp + eax*4 - 0x5c]
push eax
push edi
call ebx
mov ebx, dword [ebp - 0x28]
add esp, 4
push eax
lea eax, [ebx + 0x20]
push str._d__s__d
push eax
call fcn.004063e0
mov byte [ebp - 4], 6
or edi, 0xffffffff
mov edx, dword [ebp + 0x10]
add esp, 0x14
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d40d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d40ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d410c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
movzx eax, byte [ebx + 0x16]
mov edx, dword [ebp + eax*4 - 0x110]
test edx, edx
jne 0x4d411f
xor ecx, ecx
jmp 0x4d412d
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d4124
sub ecx, esi
push ecx
push edx
lea ecx, [ebx + 8]
call fcn.00401820
mov edx, dword [ebp + 0xc]
add edx, 0x25
jne 0x4d4143
xor ecx, ecx
jmp 0x4d4151
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d4148
sub ecx, esi
push ecx
push edx
lea ecx, [ebp + 8]
call fcn.00401820
push 2
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00434910
mov ebx, eax
push 2
push 3
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp + 8]
call fcn.00434910
mov esi, eax
push 4
push 6
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp + 8]
call fcn.00434910
push ecx
push 1
mov byte [ebp - 4], 0xa
mov esi, dword [esi]
mov edi, dword [eax]
push 1
push 1
push dword [ebx]
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
call ebx
add esp, 4
push eax
push esi
call ebx
add esp, 4
push eax
push edi
call ebx
add esp, 4
lea ecx, [ebp - 0x24]
push eax
call fcn.00490690
mov byte [ebp - 4], 9
or ebx, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d41eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d4209
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d4227
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add dword [ebp - 0x24], 0x15f90
lea eax, [ebp - 0x24]
mov esi, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
adc dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x120]
push eax
call esi
add esp, 8
test eax, eax
je 0x4d4250
xor ebx, ebx
jmp 0x4d425c
mov ebx, dword [ebp - 0x10c]
add ebx, 0x76c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x144]
push eax
call esi
add esp, 8
test eax, eax
je 0x4d4275
lea edi, [ebp - 0x5c]
jmp 0x4d4281
mov eax, dword [ebp - 0x134]
lea edi, [ebp - 0x58]
lea edi, [edi + eax*4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x168]
push eax
call esi
mov ecx, dword [ebp - 0x15c]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18c]
cmovne ecx, edx
push eax
mov dword [ebp + 0xc], ecx
call esi
mov ecx, dword [ebp - 0x180]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1b0]
cmovne ecx, edx
push eax
mov dword [ebp + 0x10], ecx
call esi
add esp, 0x18
test eax, eax
je 0x4d42d4
lea eax, [ebp - 0x7c]
jmp 0x4d42de
mov eax, dword [ebp - 0x198]
lea eax, [ebp + eax*4 - 0x78]
mov ecx, dword [ebp + 0xc]
push ebx
push dword [edi]
mov ebx, dword [ebp - 0x28]
push dword [ebp + ecx*4 - 0xfc]
push dword [ebp + 0x10]
push dword [eax]
lea eax, [ebx + 0x18]
push str.0:01am__s__d_s__s__d
push eax
call fcn.004063e0
add esp, 0x1c
cmp dword [ebx + 0x28], 0
jne 0x4d43a2
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0xb
call fcn.00401bb0
mov ecx, eax
test ecx, ecx
je 0x4d4532
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0xc]
push dword [ebx]
push dword [ebx + 0x30]
push str._sControl_ld.dat
push eax
call fcn.004063e0
mov esi, dword [ebp + 0xc]
add esp, 0x10
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4d43d9
call fcn.00464790
test eax, eax
jns 0x4d43de
or edi, 0xffffffff
mov byte [ebp - 4], 0xb
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d4394
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4d43a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop edi
pop esi
pop ebx
test eax, eax
jg 0x4d43c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov al, 1
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
jne 0x4d43fb
call fcn.00464790
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.mfc140.dll_Ordinal_265]
add esp, 4
mov dword [ebx + 0x28], eax
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push 0
push ecx
push edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d4429
call fcn.00464790
mov ecx, dword [ebx + 0x28]
mov dword [ebx + 0xc4], ecx
mov eax, dword [ecx + 2]
add eax, ecx
mov dword [ebx + 0xc8], eax
mov eax, dword [ecx + 6]
add eax, ecx
mov dword [ebx + 0xcc], eax
mov eax, dword [ecx + 0xa]
add eax, ecx
xor edx, edx
mov dword [ebx + 0xd0], eax
nop word [eax + eax]
mov eax, dword [ebx + 0xcc]
mov edi, dword [ebx + 0xd0]
lea ecx, [eax + edx]
cmp ecx, edi
jb 0x4d4488
sub eax, edi
add eax, edx
cmp eax, dword [ebx + 0xd8]
jae 0x4d4376
mov ecx, dword [ebx + 0x2c]
add ecx, eax
test ecx, ecx
je 0x4d4376
movzx eax, word [ecx + 0x82]
xor edi, edi
lea edx, [edx + eax*4]
xor eax, eax
add edx, 0x84
mov dword [ebp + 0xc], edx
cmp ax, word [ecx + 0x82]
jae 0x4d44df
mov eax, dword [ebp + 0xc]
lea edx, [ecx + 0x84]
mov dword [ebp + 0xc], eax
nop dword [eax]
cmp dword [edx], 0xffffffff
je 0x4d44cd
mov eax, dword [ebx + 0xc8]
add dword [edx], eax
movzx eax, word [ecx + 0x82]
inc edi
add edx, 4
cmp edi, eax
jl 0x4d44c0
mov edx, dword [ebp + 0xc]
mov edi, dword [ecx + 0x72]
cmp edi, 0xffffffff
je 0x4d44ef
mov eax, dword [ebx + 0x28]
add eax, edi
mov dword [ecx + 0x72], eax
mov edi, dword [ecx + 0x76]
cmp edi, 0xffffffff
je 0x4d44ff
mov eax, dword [ebx + 0x28]
add eax, edi
mov dword [ecx + 0x76], eax
mov edi, dword [ecx + 0x7a]
cmp edi, 0xffffffff
je 0x4d450f
mov eax, dword [ebx + 0x28]
add eax, edi
mov dword [ecx + 0x7a], eax
mov edi, dword [ecx + 0x7e]
cmp edi, 0xffffffff
je 0x4d4460
mov eax, dword [ebx + 0x28]
add eax, edi
mov dword [ecx + 0x7e], eax
jmp 0x4d4460
push 0x80004005
call fcn.00401f30
push 0x80004005
call fcn.00401f30
int3