Function at 0x4067f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
lea eax, [esp + 0x40]
mov dword [esp + 8], str.cursor_file
mov dword [esp + 4], 0x4c199c
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.00401bd0
mov edx, dword [esp + 0x40]
mov ebx, eax
call fcn.00403070
mov edx, dword [esp + 0x40]
mov eax, ebx
call fcn.00403070
mov edx, dword [esp + 0x40]
mov esi, eax
mov eax, ebx
call fcn.00403070
cmp esi, 2
jne 0x406c0c
mov edi, eax
shl eax, 4
mov dword [esp], eax
call fcn.004a4e90
test edi, edi
mov dword [esp + 0x34], eax
jle 0x406bb3
mov dword [esp + 0x38], eax
mov esi, eax
xor eax, eax
mov dword [esp + 0x7c], ebp
mov ebp, eax
jmp 0x406923
mov eax, dword [ebx]
sub edx, 1
test edx, edx
lea ecx, [eax + 1]
mov dword [ebx], ecx
movzx eax, byte [eax]
mov dword [ebx + 4], edx
mov byte [esi], al
js 0x406950
mov eax, dword [ebx]
sub edx, 1
test edx, edx
lea ecx, [eax + 1]
mov dword [ebx], ecx
movzx eax, byte [eax]
mov dword [ebx + 4], edx
mov byte [esi + 1], al
js 0x406970
mov eax, dword [ebx]
sub edx, 1
test edx, edx
lea ecx, [eax + 1]
mov dword [ebx], ecx
movzx eax, byte [eax]
mov dword [ebx + 4], edx
mov byte [esi + 2], al
js 0x406990
add dword [ebx], 1
mov edx, dword [esp + 0x40]
mov eax, ebx
call fcn.00403070
mov edx, dword [esp + 0x40]
mov word [esi + 4], ax
mov eax, ebx
call fcn.00403070
mov edx, dword [esp + 0x40]
mov word [esi + 6], ax
mov eax, ebx
call fcn.00403100
mov edx, dword [esp + 0x40]
mov dword [esi + 8], eax
mov eax, ebx
call fcn.00403100
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0xc]
and eax, 0x10
jne 0x406c03
add ebp, 1
add esi, 0x10
cmp edi, ebp
je 0x4069a0
mov eax, dword [ebx + 4]
lea edx, [eax - 1]
test edx, edx
mov dword [ebx + 4], edx
jns 0x406880
mov dword [esp], ebx
call sub.msvcrt.dll__filbuf
mov edx, dword [ebx + 4]
mov byte [esi], al
sub edx, 1
test edx, edx
mov dword [ebx + 4], edx
jns 0x40689a
nop
mov dword [esp], ebx
call sub.msvcrt.dll__filbuf
mov edx, dword [ebx + 4]
mov byte [esi + 1], al
sub edx, 1
test edx, edx
mov dword [ebx + 4], edx
jns 0x4068b5
lea esi, [esi]
mov dword [esp], ebx
call sub.msvcrt.dll__filbuf
mov edx, dword [ebx + 4]
mov byte [esi + 2], al
sub edx, 1
test edx, edx
mov dword [ebx + 4], edx
jns 0x4068d0
lea esi, [esi]
mov dword [esp], ebx
call sub.msvcrt.dll__filbuf
jmp 0x4068d3
mov dword [esp + 0x24], eax
mov eax, dword [0x5090d4]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
lea esi, [eax + 4]
mov edi, dword [esi + 8]
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004b4200
test eax, eax
jne 0x406bce
mov ebx, dword [esi + 4]
add esi, 0x10
mov dword [esp], ebx
call fcn.00401a90
mov edi, eax
mov eax, dword [esp + 0x40]
mov ecx, ebx
mov edx, edi
mov dword [esp], eax
mov eax, dword [esp + 0x28]
call fcn.00403220
mov dword [esp], 0x10
call fcn.00401a90
mov edx, eax
movzx eax, word [esi - 0x10]
and byte [esp + 0x44], 0xfe
mov dword [edx + 8], ebx
mov dword [edx + 0xc], edi
mov dword [esp + 0x2c], edx
mov dword [edx], eax
movzx eax, word [esi - 0xe]
mov dword [edx + 4], eax
mov eax, dword [0x5090d4]
mov dword [esp + 0x18], 0
mov ecx, dword [ebp]
mov dword [esp + 4], 1
mov dword [esp], 0x5090d8
add eax, 1
mov dword [0x5090d4], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
call fcn.00402190
mov edx, dword [esp + 0x2c]
add dword [esp + 0x24], 1
mov dword [eax], 3
mov dword [eax + 4], edx
mov edx, dword [ebp]
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 4]
mov dword [eax + 0x10], edx
mov edx, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x30], eax
jne 0x4069c0
mov ebx, dword [esp + 0x28]
lea edi, [esp + 0x44]
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x7c], ebp
mov ebp, edi
mov dword [esp + 0x44], 0
add esi, 1
add ebx, esi
mov edi, esi
mov esi, ebx
mov ebx, dword [esp + 0x38]
mov dword [esp], 0x1c
add ebx, 0x10
call fcn.00401a90
movzx ecx, byte [ebx - 0x10]
mov dword [eax + 0x18], edi
add edi, 1
mov dword [eax], 0
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], 1
mov dword [eax + 4], ecx
movzx ecx, byte [ebx - 0xf]
add ecx, ecx
mov dword [eax + 8], ecx
mov ecx, dword [ebx - 8]
add ecx, 4
cmp esi, edi
mov dword [eax + 0x14], ecx
mov dword [ebp], eax
mov ebp, eax
jne 0x406af0
mov ebp, dword [esp + 0x7c]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp + 0x18], 0
mov eax, dword [ebp]
mov dword [esp + 4], 0xc
mov dword [esp], 0x5090d8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
call fcn.00402190
mov dword [eax + 4], ebx
mov edx, dword [ebp]
mov dword [eax], 4
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 4]
mov dword [eax + 0x10], edx
mov edx, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
xor ebx, ebx
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x406b43
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov ebx, dword [esp + 0x40]
mov esi, eax
mov dword [esp], str._s:_fseek_to__lu_failed:__s
call fcn.004a5954
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00413de0
mov eax, dword [esp + 0x40]
call fcn.00402980
mov ebx, dword [esp + 0x40]
mov dword [esp], str.cursor_file___s_does_not_contain_cursor_data
call fcn.004a5954
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.00413de0
nop
lea esi, [esi]