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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xec
mov esi, dword [esp + 0x100]
mov ebx, dword [esp + 0x104]
mov eax, dword [esp + 0x108]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call dbg.jv_nomem_handler
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
call sym._jv_get_kind
cmp eax, 6
je 0x405fd1
mov dword [esp + 8], 0x2fc
mov dword [esp + 4], str..._.._.._execute.c
mov dword [esp], str.jv_get_kind_args___JV_KIND_ARRAY
call dbg._assert
mov edi, ebx
mov eax, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
sub eax, 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
lea eax, [esp + 0x78]
mov dword [esp], eax
call dbg.locfile_init
mov eax, esi
call dbg.jq_reset
mov eax, dword [esi + 8]
test eax, eax
je 0x40601b
mov dword [esp], eax
call dbg.bytecode_free
mov dword [esi + 8], 0
lea eax, [esp + 0x70]
mov dword [esp + 4], eax
lea eax, [esp + 0x78]
mov dword [esp], eax
call dbg.jq_parse
mov ebx, eax
lea ebp, [esp + 0xd0]
test eax, eax
je 0x406262
jmp 0x406459
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x90]
mov dword [esp], eax
call dbg.jv_copy
lea eax, [esp + 0x40]
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x90]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x10], edx
mov dword [esp], eax
call dbg.jv_array_get
lea eax, [esp + 0xa0]
mov dword [esp + 4], 0x43484b
mov dword [esp], eax
call dbg.jv_string
lea eax, [esp + 0xb0]
mov edx, dword [esp + 0x40]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x10], edx
mov dword [esp], eax
call dbg.jv_copy
lea eax, [esp + 0x50]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 4], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 8], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x10], edx
mov dword [esp], eax
call dbg.jv_object_get
lea eax, [esp + 0xc0]
mov dword [esp + 4], str.value
mov dword [esp], eax
call dbg.jv_string
lea eax, [esp + 0x60]
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x10], edx
mov dword [esp], eax
call dbg.jv_object_get
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
call dbg.jv_string_value
mov edi, eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
call dbg.gen_const
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], edi
call dbg.gen_var_binding
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
call dbg.jv_free
add ebx, 1
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp], ebp
call dbg.jv_copy
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0xc], eax
call dbg.jv_array_length
cmp ebx, eax
jl 0x406045
lea eax, [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp], esi
call dbg.builtins_bind
mov ebx, eax
test eax, eax
jne 0x406459
lea eax, [esi + 8]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.block_compile
mov ebx, eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
call dbg.jv_free
test ebx, ebx
je 0x406482
cmp ebx, 1
mov edx, 0x43481f
mov eax, str.errors
cmovle eax, edx
lea edx, [esp + 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str._d_compile__s
mov dword [esp], edx
call dbg.jv_string_fmt
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40638d
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x10]
mov dword [esp], edx
call eax
jmp 0x406433
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x60], ebx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x6c], eax
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call sym._jv_get_kind
test eax, eax
jne 0x4063f3
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error_formatting_jq_compilation_errors:__s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
jmp 0x406433
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
call dbg.jv_string_value
mov dword [esp + 8], eax
mov dword [esp + 4], 0x43440e
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
call dbg.jv_free
jmp 0x406482
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
call dbg.jv_free
jmp 0x40632d
lea eax, [esp + 0x78]
mov dword [esp], eax
call dbg.locfile_free
cmp dword [esi + 8], 0
setne al
movzx eax, al
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret