Function at 0x475324
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x4c5700
push 0x4eee98
call fcn.004738c9
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop ecx
pop ecx
push str.OnScriptError_Begin_r_n
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
xor ebx, ebx
push esi
mov dword [ebp - 0x3c], ebx
call dword [eax + 0xc]
mov eax, dword [esi]
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push esi
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push esi
call dword [eax + 0x14]
push 7
pop ecx
push dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], ax
call fcn.00405113
pop ecx
push eax
push dword [ebp - 0x54]
lea ecx, [ebp - 0x1c]
call fcn.0040509a
push dword [ebp - 0x58]
call fcn.00405113
pop ecx
push eax
push dword [ebp - 0x58]
lea ecx, [ebp - 0x34]
call fcn.0040509a
push 0x4eb630
lea ecx, [ebp - 0x38]
call fcn.004044ee
cmp dword [ebp - 0x54], 0
push 8
pop ebx
je 0x475413
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push str.desc_s_r_n
push eax
call fcn.00404994
mov esi, dword [ebp - 0x38]
add esp, 0xc
push esi
call edi
push esi
push str.js_error_ws
push 0x4eee98
call fcn.004738c9
add esp, 0xc
jmp 0x475416
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x58], 0
je 0x475451
cmp dword [ebp - 0x20], ebx
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push str.src_s
push eax
call fcn.00404994
mov esi, dword [ebp - 0x38]
add esp, 0xc
push esi
call edi
push esi
push str.js_error_ws
push 0x4eee98
call fcn.004738c9
add esp, 0xc
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x475486
push edx
lea eax, [ebp - 0x38]
push str.line_s_r_n
push eax
call fcn.00404994
mov esi, dword [ebp - 0x38]
add esp, 0xc
push esi
call edi
push esi
push str.js_error_ws
push 0x4eee98
call fcn.004738c9
mov edx, dword [ebp - 0x3c]
add esp, 0xc
cmp dword [ebp - 0x54], 0
je 0x4754ef
cmp dword [ebp - 0x58], 0
je 0x4754ef
test edx, edx
je 0x4754ef
cmp dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
cmp dword [ebp - 8], ebx
push edx
push ecx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push str.desc_s__src_s__line_s_r_n
push eax
call fcn.00404994
mov esi, dword [ebp - 0x38]
add esp, 0x14
push esi
call edi
cmp dword [ebp - 0x20], ebx
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
cmp dword [ebp - 8], ebx
push ecx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push str.desc_ws__src_ws__line_ws_r_n
push 0x4eee98
call fcn.004738c9
add esp, 0x14
lea ecx, [esi - 0x10]
call fcn.00404f8d
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00405ac5
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00405ac5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0048f059
leave
ret 8