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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x10254be4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0x10237124
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sym.ruby.dll_rb_scan_args
add esp, 0x18
mov dword [ebp + 8], eax
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.100623d0
add esp, 0x18
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.100591c0
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
push edx
call sym.ruby.dll_rb_reserved_fd_p
add esp, 4
test eax, eax
je 0x10065ea8
push str.The_given_fd_is_not_accessible_because_RubyVM_reserves_it
mov eax, dword [sym.ruby.dll_rb_eArgError]
push eax
call sym.ruby.dll_rb_raise
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call sym.ruby.dll_rb_w32_fstati64
add esp, 8
cmp eax, 0xffffffff
jne 0x10065ec4
push 0
call sym.ruby.dll_rb_sys_fail
mov eax, dword [ebp - 0x44]
push eax
call sym.ruby.dll_rb_update_max_fd
add esp, 4
cmp dword [ebp - 0x4c], 4
je 0x10065ef8
mov ecx, dword [0x10257c3c]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call sym.ruby.dll_rb_hash_aref
add esp, 8
test eax, eax
jne 0x10065ef8
mov eax, dword [ebp - 0x48]
or eax, 0x10000
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 8], 0
je 0x10065f26
mov edx, dword [ebp + 0x10]
push edx
call sym.ruby.dll_rb_io_close
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
push ecx
call sym.ruby.dll_rb_io_fptr_finalize
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx + 8], 0
mov dword [ebp - 0x40], 0
push 0x7c
call sym.ruby.dll_ruby_xmalloc
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x14], 4
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x28], 0
xor edx, edx
jne 0x10065f7f
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x38], 0
xor ecx, ecx
jne 0x10065fab
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x54], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x58], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x5c], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x60], 0
xor eax, eax
jne 0x10065fd7
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x50], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x64], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x68], 4
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x6c], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x70], 4
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x74], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x40], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x4c], 4
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x78], 0
xor ecx, ecx
jne 0x10065f2d
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x40]
mov dword [edx + 8], eax
xor ecx, ecx
jne 0x10065ef8
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov dword [edx], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x48]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x40]
add eax, 0x40
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
mov edx, dword [ebp - 0x64]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x60]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x5c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.100611c0
add esp, 4
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.10062980
add esp, 4
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
cmp eax, dword [ebp - 0x44]
jne 0x10066107
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov edx, dword [ebp - 0x40]
mov dword [edx + 4], eax
jmp 0x1006615f
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
cmp eax, dword [ebp - 0x44]
jne 0x10066134
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 4], eax
jmp 0x1006615f
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
cmp eax, dword [ebp - 0x44]
jne 0x1006615f
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov edx, dword [ebp - 0x40]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x48]
and eax, 0x100000
je 0x10066175
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10062f80
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101949b1
mov esp, ebp
pop ebp
ret