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

Disassembly:
push ebp
push edi
mov eax, 0x319c
push esi
push ebx
call fcn.00462ea0
sub esp, eax
mov eax, dword [esp + 0x31b0]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x31b4]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x31b8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x31bc]
mov dword [esp + 0x5c], eax
call dbg.jq_init
test eax, eax
mov dword [esp + 0x6c], eax
je 0x40cb43
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 sym._jv_get_kind
cmp eax, 1
je 0x40cabd
lea eax, [esp + 0xc0]
mov dword [esp + 4], str.JQ_LIBRARY_PATH
xor ebp, ebp
mov dword [esp], eax
call sym._jv_string
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call dbg.jq_set_attr
mov dword [esp + 0x48], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x40], 0
nop
lea esi, [esi]
mov eax, dword [esp + 0x31c4]
mov dword [esp + 4], 0x1000
mov dword [esp + 8], eax
lea eax, [esp + 0x190]
mov dword [esp], eax
call sym._fgets
test eax, eax
je 0x40c976
movzx eax, byte [esp + 0x190]
lea ebx, [ebp + 1]
cmp al, 0x20
je 0x40becd
cmp al, 9
jne 0x40bee2
lea edx, [esp + 0x191]
movzx eax, byte [edx]
add edx, 1
cmp al, 0x20
je 0x40bed4
cmp al, 9
je 0x40bed4
cmp al, 0x23
sete cl
cmp al, 0xa
sete dl
or cl, dl
jne 0x40c090
test al, al
je 0x40c090
lea esi, [esp + 0x190]
mov edi, str.__FAIL_n
mov ecx, 8
repe cmpsb byte [esi], byte es:[edi]
seta al
setb dl
sub eax, edx
movsx eax, al
test eax, eax
je 0x40c820
lea esi, [esp + 0x190]
mov edi, str.__FAIL_IGNORE_MSG_n
mov ecx, 0x13
repe cmpsb byte [esi], byte es:[edi]
je 0x40c820
lea edx, [esp + 0x190]
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x40bf42
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
lea eax, [esp + 0x190]
sbb edx, 3
sub edx, eax
sub edx, 1
cmp byte [esp + edx + 0x190], 0xa
jne 0x40bf90
mov byte [esp + edx + 0x190], 0
lea eax, [esp + 0x190]
mov dword [esp + 8], ebx
mov dword [esp], str.Testing__s_at_line_number__u_n
mov dword [esp + 4], eax
call sym._printf
lea eax, [esp + 0x190]
add dword [esp + 0x40], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call dbg.jq_compile
mov edi, eax
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40c0a0
test edi, edi
je 0x40c9f0
mov ecx, dword [esp + 0x31c0]
test ecx, ecx
jne 0x40c940
mov eax, dword [esp + 0x31c4]
lea esi, [esp + 0x1190]
mov dword [esp + 4], 0x1000
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._fgets
test eax, eax
je 0x40c971
lea eax, [esp + 0x70]
mov dword [esp + 4], esi
lea ebx, [ebp + 2]
mov dword [esp], eax
call dbg.jv_parse
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x150], edi
mov dword [esp + 0x154], ecx
mov dword [esp + 0x158], edx
mov dword [esp + 0x15c], eax
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call sym._jv_get_kind
test eax, eax
jne 0x40c180
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], str._Input_is_invalid_on_line__u:__s_n
call sym._printf
add dword [esp + 0x3c], 1
lea esi, [esi]
mov ebp, ebx
jmp 0x40be90
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], 0
lea esi, [esp + 0x1190]
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.jq_set_error_cb
mov eax, dword [esp + 0x31c4]
mov dword [esp + 4], 0x1000
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._fgets
test eax, eax
je 0x40c971
lea ebx, [ebp + 2]
mov edx, esi
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x40c0eb
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
sub edx, esi
sub edx, 1
cmp byte [esp + edx + 0x1190], 0xa
jne 0x40c132
mov byte [esp + edx + 0x1190], 0
test edi, edi
jne 0x40c9b9
mov edi, dword [esp + 0x48]
test edi, edi
je 0x40c15d
lea edi, [esp + 0x2190]
mov dword [esp], esi
mov dword [esp + 4], edi
call sym._strcmp
test eax, eax
jne 0x40cb08
add dword [esp + 0x4c], 1
mov dword [esp + 0x48], 0
mov ebp, ebx
mov dword [esp + 0x38], 0
jmp 0x40be90
mov edx, dword [esp + 0x31c0]
xor eax, eax
lea edi, [esp + 0x90]
test edx, edx
setne al
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call dbg.jq_start
mov dword [esp + 0x44], 1
lea esi, [esi]
mov eax, dword [esp + 0x31c4]
mov dword [esp + 4], 0x1000
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._fgets
test eax, eax
je 0x40c860
movzx eax, byte [esp + 0x1190]
add ebx, 1
cmp al, 9
je 0x40c206
cmp al, 0x20
jne 0x40c21e
lea edx, [esp + 0x1191]
lea esi, [esi]
movzx eax, byte [edx]
add edx, 1
cmp al, 0x20
je 0x40c210
cmp al, 9
je 0x40c210
cmp al, 0x23
sete cl
cmp al, 0xa
sete dl
or cl, dl
jne 0x40c860
test al, al
je 0x40c860
lea eax, [esp + 0x80]
mov dword [esp + 4], esi
mov dword [esp], eax
call dbg.jv_parse
mov ebp, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x160], ebp
mov dword [esp + 0x164], ecx
mov dword [esp + 0x168], edx
mov dword [esp + 0x16c], eax
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call sym._jv_get_kind
test eax, eax
je 0x40c6b4
mov eax, dword [esp + 0x6c]
mov dword [esp], edi
mov dword [esp + 4], eax
call dbg.jq_next
mov ebp, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x170], ebp
mov dword [esp + 0x174], ecx
mov dword [esp + 0x178], edx
mov dword [esp + 0x17c], eax
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call sym._jv_get_kind
test eax, eax
je 0x40ca6b
mov edx, dword [esp + 0x90]
lea eax, [esp + 0xd0]
mov dword [esp], eax
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
call sym._jv_copy
mov edx, dword [esp + 0x80]
lea eax, [esp + 0xe0]
mov dword [esp], eax
mov dword [esp + 4], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x10], edx
call sym._jv_copy
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0xc], eax
call dbg.jv_equal
test eax, eax
je 0x40c6f3
call sym._rand
mov edx, dword [esp + 0x80]
mov ebp, eax
lea eax, [esp + 0x110]
and ebp, 0xffffffdb
mov dword [esp], eax
mov dword [esp + 4], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x10], edx
call sym._jv_copy
mov edx, dword [esp + 0x110]
lea eax, [esp + 0xa0]
mov dword [esp + 0x14], ebp
mov dword [esp], eax
mov dword [esp + 4], edx
mov edx, dword [esp + 0x114]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x118]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x11c]
mov dword [esp + 0x10], edx
call dbg.jv_dump_string
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x120]
mov dword [esp], eax
mov dword [esp + 4], edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 8], edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x10], edx
call sym._jv_copy
mov eax, dword [esp + 0x120]
mov dword [esp], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x128]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x12c]
mov dword [esp + 0xc], eax
call dbg.jv_string_length_bytes
mov ebp, eax
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xc], eax
call sym._jv_string_value
lea edx, [esp + 0xb0]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp], edx
call dbg.jv_parse_sized
mov edx, dword [esp + 0xb0]
lea eax, [esp + 0x130]
mov dword [esp], eax
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
call sym._jv_copy
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x140]
mov dword [esp], eax
mov dword [esp + 4], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x10], edx
call sym._jv_copy
mov eax, dword [esp + 0x130]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x138]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x140]
mov dword [esp], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x148]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14c]
mov dword [esp + 0xc], eax
call dbg.jv_equal
test eax, eax
je 0x40c6d2
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xc], eax
call dbg.jv_free
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc], eax
call dbg.jv_free
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
call dbg.jv_free
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
call dbg.jv_free
jmp 0x40c1d0
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], str._Expected_result_is_invalid_on_line__u:__s_n
call sym._printf
add dword [esp + 0x3c], 1
jmp 0x40c1d0
mov dword [esp + 8], 0xa2
mov dword [esp + 4], str.src_jq_test.c
mov dword [esp], str.jv_equal_jv_copy_expected___jv_copy_reparsed__
call dbg._assert
jmp 0x40c5ef
mov dword [esp], str._Expected
call sym._printf
mov edx, dword [esp + 0x80]
lea eax, [esp + 0xf0]
mov dword [esp], eax
mov dword [esp + 4], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x10], edx
call sym._jv_copy
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0xc], eax
call dbg.jv_dump
mov dword [esp], str.__but_got
call sym._printf
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x100]
mov dword [esp], eax
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
call sym._jv_copy
mov eax, dword [esp + 0x100]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0xc], eax
call dbg.jv_dump
lea eax, [esp + 0x190]
mov dword [esp + 4], ebx
mov dword [esp], str._for_test_at_line_number__u:__s_n
mov dword [esp + 8], eax
call sym._printf
mov dword [esp + 0x44], 0
jmp 0x40c3dd
test eax, eax
mov dword [esp + 4], dbg.test_err_cb
mov ebp, ebx
sete al
movzx eax, al
mov dword [esp + 0x48], eax
lea eax, [esp + 0x2190]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call dbg.jq_set_error_cb
mov dword [esp + 0x38], 1
jmp 0x40be90
mov eax, dword [esp + 0x44]
mov ebp, ebx
test eax, eax
je 0x40be90
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0xb0]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.jq_next
mov esi, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x180], esi
mov dword [esp + 0x184], ecx
mov dword [esp + 0x188], edx
mov dword [esp + 0x18c], eax
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call sym._jv_get_kind
test eax, eax
je 0x40cace
mov dword [esp], str._Superfluous_result:
call sym._printf
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc], eax
call dbg.jv_dump
lea eax, [esp + 0x190]
mov dword [esp + 4], ebx
mov dword [esp], str._for_test_at_line_number__u___s_n
mov dword [esp + 8], eax
call sym._printf
jmp 0x40be90
mov dword [esp], str.Disassembly:
call sym._puts
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], 2
mov dword [esp], eax
call dbg.jq_dump_disassembly
mov dword [esp], 0xa
call sym._putchar
jmp 0x40bfec
add dword [esp + 0x3c], 1
lea eax, [esp + 0x6c]
mov dword [esp], eax
call dbg.jq_teardown
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov dword [esp], str._d_of__d_tests_passed___d_malformed__n
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
call sym._printf
cmp edi, esi
jne 0x40cb64
add esp, 0x319c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x190]
mov dword [esp + 4], ebx
mov dword [esp], str._Test_program_compiled_that_should_not_have_at_line__u:__s_n
mov ebp, ebx
mov dword [esp + 8], eax
call sym._printf
add dword [esp + 0x3c], 1
mov dword [esp + 0x48], 0
mov dword [esp + 0x38], 0
jmp 0x40be90
lea eax, [esp + 0x190]
mov dword [esp + 4], ebx
mov dword [esp], str._Test_program_failed_to_compile_at_line__u:__s_n
lea esi, [esp + 0x1190]
mov dword [esp + 8], eax
call sym._printf
add dword [esp + 0x3c], 1
mov esi, esi
lea edi, [edi]
mov eax, dword [esp + 0x31c4]
mov dword [esp + 4], 0x1000
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._fgets
test eax, eax
je 0x40ca5c
movzx eax, byte [esp + 0x1190]
add ebx, 1
cmp al, 0xa
je 0x40ca5c
cmp al, 0xd
jne 0x40ca20
cmp byte [esp + 0x1191], 0xa
jne 0x40ca20
mov dword [esp + 0x38], 0
mov ebp, ebx
jmp 0x40be90
mov eax, dword [esp + 0x90]
mov ebp, ebx
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
call dbg.jv_free
lea eax, [esp + 0x190]
mov dword [esp + 4], ebx
mov dword [esp], str._Insufficient_results_for_test_at_line_number__u:__s_n
mov dword [esp + 8], eax
call sym._printf
jmp 0x40be90
lea eax, [esp + 0x50]
mov dword [esp], eax
call sym._jv_array
jmp 0x40bdf2
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc], eax
call dbg.jv_free
add dword [esp + 0x4c], 1
jmp 0x40be90
lea eax, [esp + 0x190]
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], str._Erroneous_test_program_failed_with_wrong_message___s__at_line__u:__s_n
mov ebp, ebx
mov dword [esp + 0xc], eax
call sym._printf
add dword [esp + 0x3c], 1
mov dword [esp + 0x48], 0
mov dword [esp + 0x38], 0
jmp 0x40be90
mov dword [esp + 8], 0x43
mov dword [esp + 4], str.src_jq_test.c
mov dword [esp], 0x475c7e
call dbg._assert
jmp 0x40bdc5
mov dword [esp], 1
call sym._exit