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

Disassembly:
push 0xffffffffffffffff
push 0x51cc98
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
mov edi, dword [esi + 0x10]
sub eax, 2
cmp edi, eax
ja 0x497947
cmp dword [esi + 0x14], eax
je 0x497947
push 1
push eax
mov ecx, esi
call fcn.004050d0
test al, al
je 0x497943
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x49793d
mov eax, dword [esi]
jmp 0x49793f
mov eax, esi
mov byte [eax + edi], 0
mov ecx, dword [esp + 0x18]
mov edi, dword [ebx + 4]
mov ebp, dword [ebx + 8]
inc edi
dec ebp
cmp edi, ebp
je 0x497c08
mov dl, byte [edi]
inc edi
mov byte [esp + 0x17], dl
cmp dl, 0x22
je 0x497c08
cmp dl, 0x5c
jne 0x497a8d
cmp edi, ebp
je 0x497ba0
mov al, byte [edi]
inc edi
movsx eax, al
add eax, 0xffffffde
mov dword [esp + 0x20], edi
cmp eax, 0x53
ja case.0x497995.35
movzx eax, byte [eax + 0x497c48]
jmp dword [eax*4 + 0x497c20]
push 0x22
push 1
mov ecx, esi
call fcn.00439b70
jmp 0x497b04
push 0x2f
push 1
mov ecx, esi
call fcn.00439b70
jmp 0x497b04
push 0x5c
push 1
mov ecx, esi
call fcn.00439b70
jmp 0x497b04
push 8
push 1
mov ecx, esi
call fcn.00439b70
jmp 0x497b04
push 0xc
push 1
mov ecx, esi
call fcn.00439b70
jmp 0x497b04
push 0xa
push 1
mov ecx, esi
call fcn.00439b70
jmp 0x497b04
push 0xd
push 1
mov ecx, esi
call fcn.00439b70
jmp 0x497b04
push 9
push 1
mov ecx, esi
call fcn.00439b70
jmp 0x497b04
lea eax, [esp + 0x3c]
push eax
push ebp
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00497ca0
test al, al
je 0x497b15
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x58]
call fcn.00490d80
mov dword [esp + 0x78], 1
mov ecx, esi
push 0xffffffffffffffff
push 0
push eax
call fcn.004399e0
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x6c], 0x10
jb 0x497a72
push dword [esp + 0x58]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, dword [esp + 0x20]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
jmp 0x497b04
mov ecx, dword [esi + 0x10]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x497bfd
lea ebx, [ecx + 1]
cmp ebx, 0xfffffffe
ja 0x497bfd
mov eax, dword [esi + 0x14]
cmp eax, ebx
jae 0x497acf
push ecx
push ebx
mov ecx, esi
call fcn.004055d0
mov dl, byte [esp + 0x17]
test ebx, ebx
je 0x497b00
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x497ae8
mov eax, dword [esi]
jmp 0x497aea
test ebx, ebx
jne 0x497ac2
mov dword [esi + 0x10], ebx
cmp eax, 0x10
jb 0x497ae1
mov eax, dword [esi]
mov byte [eax], bl
jmp 0x497b00
mov eax, esi
mov byte [eax], 0
jmp 0x497b00
mov eax, esi
mov byte [eax + ecx], dl
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x497afa
mov eax, dword [esi]
jmp 0x497afc
mov eax, esi
mov byte [eax + ebx], 0
mov ebx, dword [esp + 0x1c]
cmp edi, ebp
je 0x497c08
mov ecx, dword [esp + 0x18]
jmp 0x497957
xor al, al
jmp 0x497c0a
push 0x1d
mov dword [esp + 0x38], 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0
push str.Bad_escape_sequence_in_string
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.00404ec0
mov dword [esp + 0x78], 2
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x18]
push edi
push ebx
push eax
call fcn.00497f40
mov bl, al
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x38], 0x10
jb 0x497b87
push dword [esp + 0x24]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x38], 0xf
mov al, bl
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jmp 0x497c0a
push str.Empty_escape_sequence_in_string
lea ecx, [esp + 0x44]
call fcn.00404760
mov dword [esp + 0x78], 0
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x18]
push edi
push ebx
push eax
call fcn.00497f40
mov bl, al
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x54], 0x10
jb 0x497be4
push dword [esp + 0x40]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x54], 0xf
mov al, bl
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jmp 0x497c0a
push str.string_too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 8