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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x10254be4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 4
jne 0x100634b5
mov dword [ebp - 0xb0], 1
jmp 0x100634bf
mov dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0
je 0x100634d4
mov dword [ebp - 0xb4], 0
jmp 0x100634e6
mov eax, dword [ebp + 8]
push eax
call sym.ruby.dll_rb_execarg_get
add esp, 4
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x84], ecx
cmp dword [ebp - 0x84], 0
je 0x10063534
mov edx, dword [ebp - 0x84]
cmp dword [edx], 0
je 0x10063517
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xb8], ecx
jmp 0x10063526
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 4]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
jmp 0x1006353e
mov dword [ebp - 0xbc], 0
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa0], 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0xac], 0xffffffff
mov dword [ebp - 0xa4], 0
cmp dword [ebp - 0x88], 0
je 0x100635b7
lea ecx, [ebp - 0x88]
push ecx
call sym.ruby.dll_rb_string_value_cstr
add esp, 4
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x70], ecx
mov edx, 4
shl edx, 0
mov dword [ebp + edx - 0x6c], 0xffffffff
mov eax, 4
imul ecx, eax, 0
mov dword [ebp + ecx - 0x6c], 0xffffffff
mov edx, 4
shl edx, 0
mov dword [ebp + edx - 0x64], 0xffffffff
mov eax, 4
imul ecx, eax, 0
mov dword [ebp + ecx - 0x64], 0xffffffff
cmp dword [ebp - 0x84], 0
je 0x10063687
mov edx, dword [ebp - 0x84]
cmp dword [edx], 0
jne 0x10063687
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
and edx, 0x2000
jne 0x1006363f
mov dword [ebp - 0xc0], 1
jmp 0x10063649
mov dword [ebp - 0xc0], 0
cmp dword [ebp - 0xc0], 0
je 0x10063666
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0xc]
add ecx, 8
mov dword [ebp - 0xc4], ecx
jmp 0x10063678
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0xc4]
add edx, 4
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp + 0x10]
and eax, 3
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 1
je 0x10063787
cmp dword [ebp - 0x9c], 2
je 0x100637ce
cmp dword [ebp - 0x9c], 3
je 0x100636bb
jmp 0x10063815
lea ecx, [ebp - 0x64]
push ecx
call sym.ruby.dll_rb_pipe
add esp, 4
test eax, eax
jge 0x100636d7
mov edx, dword [ebp - 0x88]
push edx
call sym.ruby.dll_rb_sys_fail_str
lea eax, [ebp - 0x6c]
push eax
call sym.ruby.dll_rb_pipe
add esp, 4
test eax, eax
jge 0x10063739
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [eax]
mov dword [ebp - 0xd4], ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0x64]
push ecx
call sym.ruby.dll_rb_w32_close
add esp, 4
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0x64]
push eax
call sym.ruby.dll_rb_w32_close
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [ebp - 0xd4]
mov dword [eax], ecx
mov edx, dword [ebp - 0x88]
push edx
call sym.ruby.dll_rb_sys_fail_str
cmp dword [ebp - 0x84], 0
je 0x10063782
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0x64]
shl edx, 1
or edx, 1
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call sym.ruby.dll_rb_execarg_addopt
add esp, 0xc
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + ecx - 0x6c]
shl edx, 1
or edx, 1
push edx
push 3
mov eax, dword [ebp + 8]
push eax
call sym.ruby.dll_rb_execarg_addopt
add esp, 0xc
jmp 0x10063821
lea ecx, [ebp - 0x6c]
push ecx
call sym.ruby.dll_rb_pipe
add esp, 4
test eax, eax
jge 0x100637a3
mov edx, dword [ebp - 0x88]
push edx
call sym.ruby.dll_rb_sys_fail_str
cmp dword [ebp - 0x84], 0
je 0x100637cc
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + eax - 0x6c]
shl ecx, 1
or ecx, 1
push ecx
push 3
mov edx, dword [ebp + 8]
push edx
call sym.ruby.dll_rb_execarg_addopt
add esp, 0xc
jmp 0x10063821
lea eax, [ebp - 0x6c]
push eax
call sym.ruby.dll_rb_pipe
add esp, 4
test eax, eax
jge 0x100637ea
mov ecx, dword [ebp - 0x88]
push ecx
call sym.ruby.dll_rb_sys_fail_str
cmp dword [ebp - 0x84], 0
je 0x10063813
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0x6c]
shl ecx, 1
or ecx, 1
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call sym.ruby.dll_rb_execarg_addopt
add esp, 0xc
jmp 0x10063821
mov eax, dword [ebp - 0x88]
push eax
call sym.ruby.dll_rb_sys_fail_str
cmp dword [ebp + 8], 4
je 0x1006390f
mov ecx, dword [ebp + 8]
push ecx
call sym.ruby.dll_rb_execarg_fixup
add esp, 4
push 0
push 0
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0x84]
push eax
call sym.ruby.dll_rb_execarg_run_options
add esp, 0x10
cmp dword [ebp - 0xa0], 0
je 0x1006387a
mov ecx, dword [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
push 1
call sym.ruby.dll_rb_w32_uaspawn
add esp, 0xc
mov dword [ebp - 0xc8], eax
jmp 0x10063893
push 0
mov eax, dword [ebp - 0xa4]
push eax
push 1
call sym.ruby.dll_rb_w32_uspawn
add esp, 0xc
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x98], ecx
cmp dword [ebp - 0x98], 0xffffffff
jne 0x100638ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, dword [eax]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0xb
je 0x100638d9
cmp dword [ebp - 0xcc], 0x8c
je 0x100638d9
jmp 0x100638e8
push 1
call sym.ruby.dll_rb_thread_sleep
add esp, 4
jmp 0x10063851
jmp 0x100638ef
cmp dword [ebp - 0x84], 0
je 0x1006390d
push 0
push 0
push 0
mov ecx, dword [ebp - 0xd0]
push ecx
call sym.ruby.dll_rb_execarg_run_options
add esp, 0x10
jmp 0x10063914
call sym.ruby.dll_rb_notimplement
cmp dword [ebp - 0x98], 0xffffffff
jne 0x10063996
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0x6c]
push ecx
call sym.ruby.dll_rb_w32_close
add esp, 4
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0x6c]
push eax
call sym.ruby.dll_rb_w32_close
add esp, 4
mov ecx, dword [ebp + 0x10]
and ecx, 3
cmp ecx, 3
jne 0x1006397c
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0x64]
push ecx
call sym.ruby.dll_rb_w32_close
add esp, 4
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0x64]
push eax
call sym.ruby.dll_rb_w32_close
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [ebp - 0xa8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x88]
push edx
call sym.ruby.dll_rb_sys_fail_str
mov eax, dword [ebp + 0x10]
and eax, 1
je 0x100639f6
mov ecx, dword [ebp + 0x10]
and ecx, 2
je 0x100639f6
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0x6c]
push eax
call sym.ruby.dll_rb_w32_close
add esp, 4
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + edx - 0x6c]
mov dword [ebp - 0x94], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + edx - 0x64]
push eax
call sym.ruby.dll_rb_w32_close
add esp, 4
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + ecx - 0x64]
mov dword [ebp - 0xac], edx
jmp 0x10063a4e
mov eax, dword [ebp + 0x10]
and eax, 1
je 0x10063a27
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + ecx - 0x6c]
push edx
call sym.ruby.dll_rb_w32_close
add esp, 4
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0x6c]
mov dword [ebp - 0x94], edx
jmp 0x10063a4e
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0x6c]
push edx
call sym.ruby.dll_rb_w32_close
add esp, 4
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + eax - 0x6c]
mov dword [ebp - 0x94], ecx
mov edx, dword [sym.ruby.dll_rb_cIO]
push edx
call fcn.1005bae0
add esp, 4
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
cmp dword [eax + 8], 0
je 0x10063a9d
mov ecx, dword [ebp - 0x90]
push ecx
call sym.ruby.dll_rb_io_close
add esp, 4
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 8]
push eax
call sym.ruby.dll_rb_io_fptr_finalize
add esp, 4
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 8], 0
mov dword [ebp - 0x7c], 0
push 0x7c
call sym.ruby.dll_ruby_xmalloc
add esp, 4
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [edx], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x14], 4
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x28], 0
xor ecx, ecx
jne 0x10063af6
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x38], 0
xor eax, eax
jne 0x10063b22
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x54], 0
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x58], 0
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x5c], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x60], 0
xor edx, edx
jne 0x10063b4e
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x50], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x64], 0
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x68], 4
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x6c], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x70], 4
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x74], 0
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x48], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x4c], 4
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x78], 0
xor eax, eax
jne 0x10063aa4
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x7c]
mov dword [ecx + 8], edx
xor eax, eax
jne 0x10063a63
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x94]
mov dword [ecx], edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0xd8]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x10]
or edx, 8
or edx, 0x20
mov eax, dword [ebp - 0x7c]
mov dword [eax + 8], edx
cmp dword [ebp + 0x14], 0
je 0x10063c7a
mov ecx, dword [ebp - 0x7c]
add ecx, 0x40
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x48]
and ecx, 0x1000
je 0x10063c78
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x48]
or eax, 0x100
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x48], eax
jmp 0x10063cb9
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 8]
and eax, 0x1000
je 0x10063c99
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x48]
or edx, 0x100
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x48], edx
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 8]
and edx, 0x1000
je 0x10063cb9
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x48]
or ecx, 0x1000
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x48], ecx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x98]
mov dword [eax + 0xc], ecx
cmp dword [ebp - 0xac], 0
jl 0x10063eee
mov edx, dword [sym.ruby.dll_rb_cIO]
push edx
call fcn.1005bae0
add esp, 4
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 8], 0
je 0x10063d21
mov ecx, dword [ebp - 0x8c]
push ecx
call sym.ruby.dll_rb_io_close
add esp, 4
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 8]
push eax
call sym.ruby.dll_rb_io_fptr_finalize
add esp, 4
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 8], 0
mov dword [ebp - 0x80], 0
push 0x7c
call sym.ruby.dll_ruby_xmalloc
add esp, 4
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [edx], 0xffffffff
mov eax, dword [ebp - 0x80]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x80]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x14], 4
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x28], 0
xor ecx, ecx
jne 0x10063d7a
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x38], 0
xor eax, eax
jne 0x10063da6
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x54], 0
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x58], 0
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x5c], 0
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x60], 0
xor edx, edx
jne 0x10063dd2
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x50], 0
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x64], 0
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x68], 4
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x6c], 0
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x70], 4
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x74], 0
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x48], 0
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x4c], 4
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x78], 0
xor eax, eax
jne 0x10063d28
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x80]
mov dword [ecx + 8], edx
xor eax, eax
jne 0x10063ce7
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0xac]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
and eax, 0xfffffffe
or eax, 8
or eax, 0x20
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 8]
and eax, 0xfffffffd
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x8c]
mov dword [edx + 0x3c], eax
mov ecx, dword [ebp - 0x8c]
push ecx
push 0x10236e34
call sym.ruby.dll_rb_intern
add esp, 4
push eax
mov edx, dword [ebp - 0x90]
push edx
call sym.ruby.dll_rb_ivar_set
add esp, 0xc
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x18], 0x10063440
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.10063340
add esp, 4
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101949b1
mov esp, ebp
pop ebp
ret