Function at 0x406ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
mov edx, dword [0x437c5c]
xor eax, eax
mov word [ebp - 4], 2
cmp word [ebp - 4], 2
push ebx
sete al
push esi
mov esi, dword [sym.imp.MSVCR100.dll_fread]
push edi
mov dword [ebp - 0x18], eax
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
add eax, eax
add eax, eax
mov ebx, dword [eax + edx]
push ebx
mov dword [ebp - 0x20], eax
push 1
lea eax, [ecx + ecx*8]
shl eax, 4
push 0xb
push 0x4385a0
mov dword [ebp - 0x10], eax
mov dword [eax + 0x437a84], 0
call esi
mov edi, dword [sym.imp.MSVCR100.dll__strnicmp]
push 0xb
push str._stata_dta_
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x406f79
mov eax, dword [ebp + 8]
push str.Stata__stata_dta_
inc eax
push eax
jmp 0x4076c2
push ebx
push 1
push 8
push 0x4385a0
call esi
push 8
push str._header_
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x406fa4
push str.Stata__header_
jmp 0x4076bd
push ebx
push 1
push 9
push 0x4385a0
call esi
push 9
push str._release_
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x406fd4
mov edx, dword [ebp + 8]
push str.Stata__release_
inc edx
push edx
jmp 0x4076c2
push ebx
push 1
push 3
push 0x4385a0
call esi
push 0x4385a0
mov byte [0x4385a3], 0
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 0x14
mov dword [ebp - 0x14], eax
cmp eax, 0x76
jle 0x40700c
mov eax, dword [ebp + 8]
push str.Stata__releaseno_
inc eax
push eax
jmp 0x4076c2
sub eax, 0x75
je 0x407043
dec eax
je 0x40702d
dec eax
jne 0x407057
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x437a98], 0xf
mov dword [ebp - 0x1c], 0x81
jmp 0x407057
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x437a98], 0xe
mov dword [ebp - 0x1c], 0x81
jmp 0x407057
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x437a98], 0xd
mov dword [ebp - 0x1c], 0x21
push ebx
push 1
push 0xa
push 0x4385a0
call esi
push 0xa
push str.__release_
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x407082
push str.Stata___release_
jmp 0x4076bd
push ebx
push 1
push 0xb
push 0x4385a0
call esi
push 0xb
push str._byteorder_
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x4070b2
mov edx, dword [ebp + 8]
push str.Stata__byteorder_
inc edx
push edx
jmp 0x4076c2
push ebx
push 1
push 3
push 0x4385a0
call esi
push 3
push 0x42ff2c
push 0x4385a0
mov byte [0x4385a3], 0
call edi
add esp, 0x1c
test eax, eax
jne 0x4070ee
cmp dword [ebp - 0x18], eax
jne 0x407110
mov eax, dword [ebp + 8]
push str.Stata__byteorder_
inc eax
push eax
jmp 0x4076c2
push 3
push 0x42ff30
push 0x4385a0
call edi
add esp, 0xc
test eax, eax
jne 0x4076b8
cmp dword [ebp - 0x18], eax
je 0x4076b8
push ebx
push 1
push 0xc
push 0x4385a0
call esi
push 0xc
push str.__byteorder_
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x407140
mov edx, dword [ebp + 8]
push str.Stata___byteorder_
inc edx
push edx
jmp 0x4076c2
push ebx
push 1
push 3
push 0x4385a0
call esi
push 3
push 0x42ff58
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x407170
mov eax, dword [ebp + 8]
push str.Stata__K_
inc eax
push eax
jmp 0x4076c2
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x437a98], 0x77
jne 0x40718b
mov edx, dword [ebp + 8]
push str.Cannot_read_files_with___32_767_variables
inc edx
push edx
jmp 0x4076c2
push ebx
push 1
lea eax, [ebp - 8]
push 2
push eax
call esi
mov ax, word [ebp - 8]
mov ecx, dword [ebp - 0x10]
push ebx
movsx edx, ax
push 1
mov word [ecx + 0x437a88], ax
mov eax, dword [0x437c5c]
mov ecx, dword [ebp - 0x20]
push 4
push 0x4385a0
mov dword [ecx + eax + 4], edx
call esi
push 4
push str.__K_
push 0x4385a0
call edi
add esp, 0x2c
test eax, eax
je 0x4071e3
mov edx, dword [ebp + 8]
push str.Stata___K_
inc edx
push edx
jmp 0x4076c2
push ebx
push 1
push 3
push 0x4385a0
call esi
push 3
push 0x42ffa8
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x407213
mov eax, dword [ebp + 8]
push str.Stata__N_
inc eax
push eax
jmp 0x4076c2
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x437a98], 0xd
push ebx
push 1
je 0x40722f
lea edx, [ebp - 0x28]
push 8
push edx
call esi
mov eax, dword [ebp - 0x28]
jmp 0x40723a
lea edx, [ebp - 0x14]
push 4
push edx
call esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push ebx
push 1
push 4
push 0x4385a0
mov dword [ecx + 0x437a80], eax
call esi
push 4
push str.__N_
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x407276
mov edx, dword [ebp + 8]
push str.Stata___N_
inc edx
push edx
jmp 0x4076c2
push ebx
push 1
push 7
push 0x4385a0
call esi
push 7
push str._label_
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x4072a6
mov eax, dword [ebp + 8]
push str.Stata__label_
inc eax
push eax
jmp 0x4076c2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x437a98]
sub eax, 0xd
je 0x4072dc
dec eax
jne 0x4072ea
push ebx
push 1
lea edx, [ebp - 0xc]
push 2
push edx
call esi
mov ax, word [ebp - 0xc]
add esp, 0x10
test ax, ax
jne 0x4072d3
mov byte [ebp - 3], al
jmp 0x4072ea
add al, al
add al, al
mov byte [ebp - 3], al
jmp 0x4072ea
push ebx
push 1
lea eax, [ebp - 3]
push 1
push eax
call esi
add esp, 0x10
movzx eax, byte [ebp - 3]
cdq
push 1
push edx
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__fseeki64]
push ebx
push 1
push 8
push 0x4385a0
call esi
push 8
push str.__label_
push 0x4385a0
call edi
add esp, 0x2c
test eax, eax
je 0x407325
push str.Stata___label_
jmp 0x4076bd
push ebx
push 1
push 0xb
push 0x4385a0
call esi
push 0xb
push str._timestamp_
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x407355
mov edx, dword [ebp + 8]
push str.Stata___timestamp_
inc edx
push edx
jmp 0x4076c2
push ebx
push 1
lea eax, [ebp - 3]
push 1
push eax
call esi
movzx eax, byte [ebp - 3]
cdq
push 1
push edx
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__fseeki64]
push ebx
push 1
push 0x15
push 0x4385a0
call esi
push 0x15
push str.__timestamp___header_
push 0x4385a0
call edi
add esp, 0x3c
test eax, eax
je 0x40739b
push str.Stata___timestamp_
jmp 0x4076bd
push ebx
push 1
push 5
push 0x4385a0
call esi
push 5
push str._map_
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x4073cb
mov edx, dword [ebp + 8]
push str.Stata__map_
inc edx
push edx
jmp 0x4076c2
mov eax, dword [ebp - 0x10]
push ebx
push 1
lea ecx, [eax + 0x437aa0]
push 0x70
push ecx
call esi
push ebx
push 1
push 6
push 0x4385a0
call esi
push 6
push str.__map_
push 0x4385a0
call edi
add esp, 0x2c
test eax, eax
je 0x40740c
mov edx, dword [ebp + 8]
push str.Stata___map_
inc edx
push edx
jmp 0x4076c2
push ebx
push 1
push 0x10
push 0x4385a0
call esi
push 0x10
push str._variable_types_
push 0x4385a0
call edi
add esp, 0x1c
test eax, eax
je 0x40743c
mov eax, dword [ebp + 8]
push str.Stata__vartype_
inc eax
push eax
jmp 0x4076c2
mov ecx, dword [ebp - 0x10]
movsx eax, word [ecx + 0x437a88]
lea edi, [eax + eax]
mov dword [ebp - 0x18], eax
call fcn.00404b60
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
add edi, edi
add edi, edi
mov dword [edx + 0x437a90], eax
call fcn.00404b60
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x437a94], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [edx + 0x437a90]
mov ecx, ebx
add eax, eax
call fcn.004042d0
push ebx
push 1
push 0x11
push 0x4385a0
call esi
push 0x11
push str.__variable_types_
push 0x4385a0
call dword [sym.imp.MSVCR100.dll__strnicmp]
add esp, 0x1c
test eax, eax
je 0x4074b5
mov eax, dword [ebp + 8]
push str.Stata___vartype_
inc eax
push eax
jmp 0x4076c2
mov eax, dword [ebp - 0x18]
mov edi, eax
shl edi, 5
add edi, eax
call fcn.00404b60
mov edi, dword [ebp - 0x10]
push ebx
push 1
push 0xa
push 0x4385a0
mov dword [edi + 0x437a9c], eax
call esi
push 0xa
push str._varnames_
push 0x4385a0
call dword [sym.imp.MSVCR100.dll__strnicmp]
add esp, 0x1c
test eax, eax
je 0x4074fc
push str.Stata__varnames_
jmp 0x4076bd
mov eax, dword [edi + 0x437a98]
sub eax, 0xd
mov edx, dword [edi + 0x437a9c]
mov dword [ebp - 0x20], edx
je 0x4075c9
dec eax
jne 0x407595
mov edi, dword [ebp - 0x18]
imul edi, dword [ebp - 0x1c]
call fcn.00404b60
mov edx, eax
mov ecx, ebx
mov eax, edi
mov dword [ebp - 0x18], edx
call fcn.004042d0
mov ecx, dword [ebp - 0x10]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x14], eax
cmp dx, word [ecx + 0x437a88]
jge 0x407581
mov edi, dword [sym.imp.MSVCR100.dll_strncpy]
lea ebx, [ebx]
mov edx, dword [ebp - 0x1c]
imul edx, eax
add edx, dword [ebp - 0x18]
mov ecx, eax
shl ecx, 5
add ecx, dword [ebp - 0x20]
push 0x21
push edx
add ecx, eax
push ecx
call edi
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
movsx ecx, word [edx + 0x437a88]
inc eax
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp eax, ecx
jl 0x407550
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x407592
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov edi, dword [ebp - 0x10]
push ebx
push 1
push 0xb
push 0x4385a0
call esi
push 0xb
push str.__varnames_
push 0x4385a0
call dword [sym.imp.MSVCR100.dll__strnicmp]
add esp, 0x1c
test eax, eax
je 0x4075e0
mov edx, dword [ebp + 8]
push str.Stata___varnames_
inc edx
push edx
jmp 0x4076c2
movsx ecx, word [edi + 0x437a88]
mov eax, ecx
shl eax, 5
add eax, ecx
mov ecx, ebx
call fcn.004042d0
jmp 0x407595
xor eax, eax
mov dword [ebp - 0x1c], 0
cmp ax, word [edi + 0x437a88]
jge 0x407651
mov esi, dword [ebp - 0x20]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407600
sub eax, edx
mov dword [ebp - 0x14], eax
cmp eax, 0x21
jge 0x407627
mov edx, 0x21
sub edx, eax
push edx
lea ecx, [esi + eax]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, 8
call fcn.004045b0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
movsx edx, word [ecx + 0x437a88]
inc eax
add esi, 0x21
mov dword [ebp - 0x1c], eax
cmp eax, edx
jl 0x4075f5
mov esi, dword [sym.imp.MSVCR100.dll_fread]
mov edi, ecx
mov eax, dword [edi + 0x437ae8]
cdq
push 0
push edx
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__fseeki64]
push ebx
push 1
push 6
push 0x4385a0
call esi
push 6
push str._data_
push 0x4385a0
call dword [sym.imp.MSVCR100.dll__strnicmp]
add esp, 0x2c
test eax, eax
je 0x407694
mov eax, dword [ebp + 8]
push str.Stata__data_
inc eax
push eax
jmp 0x4076c2
push ebx
call dword [sym.imp.MSVCR100.dll__ftelli64]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx*8 + 0x437c40], eax
mov dword [ecx*8 + 0x437c44], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Stata__byteorder_
mov ecx, dword [ebp + 8]
inc ecx
push ecx
push str.The_level__d_file_does_not_seem_to_be_a__s_file__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret