Function at 0x406420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
mov edx, dword [0x42fb48]
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 0x430260
mov dword [ebp - 0x10], eax
mov dword [eax + 0x42fa24], 0
call esi
mov edi, dword [sym.imp.MSVCR100.dll__strnicmp]
push 0xb
push str._stata_dta_
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x4064a9
mov eax, dword [ebp + 8]
push str.Stata__stata_dta_
inc eax
push eax
jmp 0x406bf2
push ebx
push 1
push 8
push 0x430260
call esi
push 8
push str._header_
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x4064d4
push str.Stata__header_
jmp 0x406bed
push ebx
push 1
push 9
push 0x430260
call esi
push 9
push str._release_
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x406504
mov edx, dword [ebp + 8]
push str.Stata__release_
inc edx
push edx
jmp 0x406bf2
push ebx
push 1
push 3
push 0x430260
call esi
push 0x430260
mov byte [0x430263], 0
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 0x14
mov dword [ebp - 0x14], eax
cmp eax, 0x76
jle 0x40653c
mov eax, dword [ebp + 8]
push str.Stata__releaseno_
inc eax
push eax
jmp 0x406bf2
sub eax, 0x75
je 0x406573
dec eax
je 0x40655d
dec eax
jne 0x406587
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x42fa38], 0xf
mov dword [ebp - 0x1c], 0x81
jmp 0x406587
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x42fa38], 0xe
mov dword [ebp - 0x1c], 0x81
jmp 0x406587
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x42fa38], 0xd
mov dword [ebp - 0x1c], 0x21
push ebx
push 1
push 0xa
push 0x430260
call esi
push 0xa
push str.__release_
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x4065b2
push str.Stata___release_
jmp 0x406bed
push ebx
push 1
push 0xb
push 0x430260
call esi
push 0xb
push str._byteorder_
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x4065e2
mov edx, dword [ebp + 8]
push str.Stata__byteorder_
inc edx
push edx
jmp 0x406bf2
push ebx
push 1
push 3
push 0x430260
call esi
push 3
push 0x427f14
push 0x430260
mov byte [0x430263], 0
call edi
add esp, 0x1c
test eax, eax
jne 0x40661e
cmp dword [ebp - 0x18], eax
jne 0x406640
mov eax, dword [ebp + 8]
push str.Stata__byteorder_
inc eax
push eax
jmp 0x406bf2
push 3
push 0x427f18
push 0x430260
call edi
add esp, 0xc
test eax, eax
jne 0x406be8
cmp dword [ebp - 0x18], eax
je 0x406be8
push ebx
push 1
push 0xc
push 0x430260
call esi
push 0xc
push str.__byteorder_
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x406670
mov edx, dword [ebp + 8]
push str.Stata___byteorder_
inc edx
push edx
jmp 0x406bf2
push ebx
push 1
push 3
push 0x430260
call esi
push 3
push 0x427f40
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x4066a0
mov eax, dword [ebp + 8]
push str.Stata__K_
inc eax
push eax
jmp 0x406bf2
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x42fa38], 0x77
jne 0x4066bb
mov edx, dword [ebp + 8]
push str.Cannot_read_files_with___32_767_variables
inc edx
push edx
jmp 0x406bf2
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 + 0x42fa28], ax
mov eax, dword [0x42fb48]
mov ecx, dword [ebp - 0x20]
push 4
push 0x430260
mov dword [ecx + eax + 4], edx
call esi
push 4
push str.__K_
push 0x430260
call edi
add esp, 0x2c
test eax, eax
je 0x406713
mov edx, dword [ebp + 8]
push str.Stata___K_
inc edx
push edx
jmp 0x406bf2
push ebx
push 1
push 3
push 0x430260
call esi
push 3
push 0x427f90
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x406743
mov eax, dword [ebp + 8]
push str.Stata__N_
inc eax
push eax
jmp 0x406bf2
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x42fa38], 0xd
push ebx
push 1
je 0x40675f
lea edx, [ebp - 0x28]
push 8
push edx
call esi
mov eax, dword [ebp - 0x28]
jmp 0x40676a
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 0x430260
mov dword [ecx + 0x42fa20], eax
call esi
push 4
push str.__N_
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x4067a6
mov edx, dword [ebp + 8]
push str.Stata___N_
inc edx
push edx
jmp 0x406bf2
push ebx
push 1
push 7
push 0x430260
call esi
push 7
push str._label_
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x4067d6
mov eax, dword [ebp + 8]
push str.Stata__label_
inc eax
push eax
jmp 0x406bf2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x42fa38]
sub eax, 0xd
je 0x40680c
dec eax
jne 0x40681a
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 0x406803
mov byte [ebp - 3], al
jmp 0x40681a
add al, al
add al, al
mov byte [ebp - 3], al
jmp 0x40681a
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 0x430260
call esi
push 8
push str.__label_
push 0x430260
call edi
add esp, 0x2c
test eax, eax
je 0x406855
push str.Stata___label_
jmp 0x406bed
push ebx
push 1
push 0xb
push 0x430260
call esi
push 0xb
push str._timestamp_
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x406885
mov edx, dword [ebp + 8]
push str.Stata___timestamp_
inc edx
push edx
jmp 0x406bf2
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 0x430260
call esi
push 0x15
push str.__timestamp___header_
push 0x430260
call edi
add esp, 0x3c
test eax, eax
je 0x4068cb
push str.Stata___timestamp_
jmp 0x406bed
push ebx
push 1
push 5
push 0x430260
call esi
push 5
push str._map_
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x4068fb
mov edx, dword [ebp + 8]
push str.Stata__map_
inc edx
push edx
jmp 0x406bf2
mov eax, dword [ebp - 0x10]
push ebx
push 1
lea ecx, [eax + 0x42fa40]
push 0x70
push ecx
call esi
push ebx
push 1
push 6
push 0x430260
call esi
push 6
push str.__map_
push 0x430260
call edi
add esp, 0x2c
test eax, eax
je 0x40693c
mov edx, dword [ebp + 8]
push str.Stata___map_
inc edx
push edx
jmp 0x406bf2
push ebx
push 1
push 0x10
push 0x430260
call esi
push 0x10
push str._variable_types_
push 0x430260
call edi
add esp, 0x1c
test eax, eax
je 0x40696c
mov eax, dword [ebp + 8]
push str.Stata__vartype_
inc eax
push eax
jmp 0x406bf2
mov ecx, dword [ebp - 0x10]
movsx eax, word [ecx + 0x42fa28]
lea edi, [eax + eax]
mov dword [ebp - 0x18], eax
call fcn.00404140
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
add edi, edi
add edi, edi
mov dword [edx + 0x42fa30], eax
call fcn.00404140
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x42fa34], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [edx + 0x42fa30]
mov ecx, ebx
add eax, eax
call fcn.00403ba0
push ebx
push 1
push 0x11
push 0x430260
call esi
push 0x11
push str.__variable_types_
push 0x430260
call dword [sym.imp.MSVCR100.dll__strnicmp]
add esp, 0x1c
test eax, eax
je 0x4069e5
mov eax, dword [ebp + 8]
push str.Stata___vartype_
inc eax
push eax
jmp 0x406bf2
mov eax, dword [ebp - 0x18]
mov edi, eax
shl edi, 5
add edi, eax
call fcn.00404140
mov edi, dword [ebp - 0x10]
push ebx
push 1
push 0xa
push 0x430260
mov dword [edi + 0x42fa3c], eax
call esi
push 0xa
push str._varnames_
push 0x430260
call dword [sym.imp.MSVCR100.dll__strnicmp]
add esp, 0x1c
test eax, eax
je 0x406a2c
push str.Stata__varnames_
jmp 0x406bed
mov eax, dword [edi + 0x42fa38]
sub eax, 0xd
mov edx, dword [edi + 0x42fa3c]
mov dword [ebp - 0x20], edx
je 0x406af9
dec eax
jne 0x406ac5
mov edi, dword [ebp - 0x18]
imul edi, dword [ebp - 0x1c]
call fcn.00404140
mov edx, eax
mov ecx, ebx
mov eax, edi
mov dword [ebp - 0x18], edx
call fcn.00403ba0
mov ecx, dword [ebp - 0x10]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x14], eax
cmp dx, word [ecx + 0x42fa28]
jge 0x406ab1
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 + 0x42fa28]
inc eax
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp eax, ecx
jl 0x406a80
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406ac2
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov edi, dword [ebp - 0x10]
push ebx
push 1
push 0xb
push 0x430260
call esi
push 0xb
push str.__varnames_
push 0x430260
call dword [sym.imp.MSVCR100.dll__strnicmp]
add esp, 0x1c
test eax, eax
je 0x406b10
mov edx, dword [ebp + 8]
push str.Stata___varnames_
inc edx
push edx
jmp 0x406bf2
movsx ecx, word [edi + 0x42fa28]
mov eax, ecx
shl eax, 5
add eax, ecx
mov ecx, ebx
call fcn.00403ba0
jmp 0x406ac5
xor eax, eax
mov dword [ebp - 0x1c], 0
cmp ax, word [edi + 0x42fa28]
jge 0x406b81
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 0x406b30
sub eax, edx
mov dword [ebp - 0x14], eax
cmp eax, 0x21
jge 0x406b57
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.00403be0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
movsx edx, word [ecx + 0x42fa28]
inc eax
add esi, 0x21
mov dword [ebp - 0x1c], eax
cmp eax, edx
jl 0x406b25
mov esi, dword [sym.imp.MSVCR100.dll_fread]
mov edi, ecx
mov eax, dword [edi + 0x42fa88]
cdq
push 0
push edx
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__fseeki64]
push ebx
push 1
push 6
push 0x430260
call esi
push 6
push str._data_
push 0x430260
call dword [sym.imp.MSVCR100.dll__strnicmp]
add esp, 0x2c
test eax, eax
je 0x406bc4
mov eax, dword [ebp + 8]
push str.Stata__data_
inc eax
push eax
jmp 0x406bf2
push ebx
call dword [sym.imp.MSVCR100.dll__ftelli64]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx*8 + 0x42f9d0], eax
mov dword [ecx*8 + 0x42f9d4], 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