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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x15c
mov ebp, ecx
mov ecx, dword [edx + 4]
mov esi, edx
mov ebx, dword [edx]
mov edx, dword [edx + 8]
call 0x49d8ab
pop eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edx
push dword [ebx + 0x50]
call fcn.00499cf0
add esp, 4
cmp eax, 0x7b
jne 0x49e40c
lea edi, [ebx + 0x50]
mov ecx, dword [esp + 0x170]
mov eax, dword [edi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 8]
movsd xmm0, qword [edi]
test eax, eax
movsd qword [esp + 0x28], xmm0
je 0x49d998
mov dword [esp], ebp
lea ebp, [eax - 1]
mov dword [ecx + 8], ebp
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*8 - 8]
mov eax, dword [ecx + eax*8 - 4]
mov dword [esp + 4], ecx
cmp edx, 2
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], eax
jae 0x49da11
mov eax, dword [edi + 8]
mov dword [esp + 0x48], eax
movsd xmm0, qword [edi]
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [edi]
movsd qword [esp + 0x34], xmm0
mov eax, dword [edi + 8]
mov edi, dword [esp + 8]
test edi, edi
mov dword [esp + 0x3c], eax
je 0x49db0c
js 0x49e420
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
mov ebx, dword [esp + 4]
test eax, eax
jne 0x49d97f
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x49daa5
mov dword [0x5371d8], eax
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test eax, eax
jne 0x49db15
jmp 0x49daa5
mov eax, dword [edi + 8]
cmp dword [esp + 8], 0
mov dword [esp + 0x48], eax
movsd xmm0, qword [edi]
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [edi]
movsd qword [esp + 0x34], xmm0
mov eax, dword [edi + 8]
mov dword [esp + 0x3c], eax
je 0x49dab1
js 0x49e420
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
mov edi, ecx
test eax, eax
jne 0x49d9ec
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x49da03
mov dword [0x5371d8], eax
push dword [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test eax, eax
jne 0x49dab8
mov edx, dword [esp + 8]
mov ecx, 1
call fcn.004d6180
mov ecx, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x7c], edx
call fcn.0049a4d0
test al, al
je 0x49da37
mov ecx, esi
call fcn.00499ad0
mov eax, dword [esp + 8]
cmp dword [edi], eax
jne 0x49dbe3
mov eax, dword [edi + 8]
movsd xmm1, qword [esp + 0x28]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
movsd xmm0, qword [edi]
mov edi, dword [esp + 8]
test edi, edi
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x34], xmm1
mov dword [esp + 0x3c], eax
je 0x49db4f
mov ebx, dword [esp + 4]
js 0x49e420
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
test eax, eax
jne 0x49da91
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x49daa5
mov dword [0x5371d8], eax
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test eax, eax
jne 0x49db58
mov ecx, 1
mov edx, edi
call fcn.004d6180
mov edi, ecx
mov esi, 1
mov ebx, dword [esp + 8]
push ebx
push dword [esp + 0x14]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [esp + 0x3c]
movsd xmm0, qword [esp + 0x34]
movsd qword [ebp + 0x30], xmm1
movsd xmm1, qword [esp + 0x44]
movsd qword [ebp + 0x28], xmm0
movsd qword [ebp + 0x38], xmm1
mov dword [ebp], 0x1b
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], ebx
mov ebx, dword [edi + 4]
cmp dword [edi], 0
jne 0x49dbc9
jmp 0x49dbd8
mov ebx, dword [esp + 4]
mov esi, 1
push edi
push dword [esp + 0x14]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp]
movsd xmm1, qword [esp + 0x3c]
movsd xmm0, qword [esp + 0x34]
movsd qword [eax + 0x30], xmm1
movsd xmm1, qword [esp + 0x44]
movsd qword [eax + 0x28], xmm0
movsd qword [eax + 0x38], xmm1
mov dword [eax], 0x1b
jmp 0x49db90
mov ebx, dword [esp + 4]
mov esi, 1
push edi
push dword [esp + 0x14]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [esp + 0x3c]
mov eax, dword [esp]
movsd xmm0, qword [esp + 0x34]
movsd qword [eax + 0x30], xmm1
movsd xmm1, qword [esp + 0x44]
movsd qword [eax + 0x28], xmm0
movsd qword [eax + 0x38], xmm1
mov dword [eax], 0x1a
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], edi
lea ecx, [esp + 0xdc]
call fcn.0049eb20
test ebp, ebp
je 0x49dbbd
mov esi, ebx
nop dword [eax + eax]
mov ecx, esi
call fcn.0049eb20
add esi, 8
dec ebp
jne 0x49dbb0
mov edi, dword [esp + 0x170]
cmp dword [edi], 0
je 0x49dbd8
push ebx
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x15c
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x34]
mov edx, esi
call fcn.0049fba0
lea edx, [esp + 0x34]
lea eax, [esp + 0xe4]
mov dword [esp + 0x124], 5
mov dword [esp + 0xe4], 0x19
lea ecx, [esp + 0x80]
push eax
lea eax, [esp + 0x128]
push eax
call fcn.0049ffd0
add esp, 8
mov eax, dword [edi]
mov edx, dword [esp + 8]
cmp eax, edx
jne 0x49dca6
mov eax, dword [edi + 8]
movsd xmm1, qword [esp + 0x28]
test edx, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
movsd xmm0, qword [edi]
mov edi, edx
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x34], xmm1
mov dword [esp + 0x3c], eax
je 0x49de74
js 0x49e420
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
mov ebx, dword [esp + 4]
test eax, eax
jne 0x49dc8d
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x49daa5
mov dword [0x5371d8], eax
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test eax, eax
jne 0x49de7d
jmp 0x49daa5
mov ecx, dword [esp + 0x10]
push eax
call fcn.00499cf0
add esp, 4
cmp eax, 0x2c
jne 0x49dd51
mov ecx, esi
call fcn.0049a4d0
test al, al
je 0x49dcda
mov ecx, esi
call fcn.00499ad0
mov eax, dword [edi]
cmp eax, dword [esp + 8]
jne 0x49decf
mov eax, dword [edi + 8]
mov esi, dword [esp]
movsd xmm1, qword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
lea ecx, [esi + 0x1c]
movsd xmm0, qword [edi]
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x34], xmm1
mov dword [esp + 0x3c], eax
push dword [esp + 8]
call fcn.004a0200
add esp, 4
movsd xmm0, qword [esp + 0x44]
movsd xmm2, qword [esp + 0x34]
movsd xmm1, qword [esp + 0x3c]
mov ebx, dword [esp + 4]
mov cl, 1
mov al, 1
movsd qword [esi + 0x38], xmm0
movsd qword [esi + 0x30], xmm1
movsd qword [esi + 0x28], xmm2
mov dword [esi], 0x1a
test al, al
jne 0x49e0fe
jmp 0x49db99
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
cmp eax, 0x22
jne 0x49df15
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov eax, dword [edi]
mov ebx, dword [esp + 8]
cmp eax, ebx
je 0x49e08b
mov ecx, dword [esp + 0x10]
mov edx, ebx
push eax
call fcn.00499cf0
add esp, 4
cmp eax, 0x7d
jne 0x49e08b
mov ecx, esi
call fcn.004a0270
mov bl, 1
test al, al
je 0x49dddf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push dword [edi]
call fcn.00499cf0
add esp, 4
cmp eax, 0x3f
jne 0x49dddf
mov ecx, esi
call fcn.0049a4d0
xor ebx, ebx
mov eax, dword [edi + 8]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x30]
movsd xmm0, qword [edi]
movsd qword [esp + 0xd0], xmm0
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x78]
movsd xmm0, qword [esp + 0x28]
cmp dword [esp + 0x18], eax
movsd qword [esp + 0xc4], xmm0
seta al
test byte [esp + 0x24], al
mov eax, dword [esp + 0x7c]
je 0x49dfad
mov esi, dword [esp]
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x1c]
push dword [esp + 8]
call fcn.004a0200
add esp, 4
movsd xmm0, qword [esp + 0xd4]
movsd xmm2, qword [esp + 0xc4]
movsd xmm1, qword [esp + 0xcc]
movsd qword [esi + 0x38], xmm0
movsd qword [esi + 0x30], xmm1
movsd qword [esi + 0x28], xmm2
mov dword [esi], 0x18
jmp 0x49e0ea
mov ebx, dword [esp + 4]
mov esi, 1
push edi
push dword [esp + 0x14]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [esp + 0x3c]
mov eax, dword [esp]
movsd xmm0, qword [esp + 0x34]
mov cl, 1
movsd qword [eax + 0x30], xmm1
movsd xmm1, qword [esp + 0x44]
movsd qword [eax + 0x28], xmm0
movsd qword [eax + 0x38], xmm1
mov dword [eax], 0x1a
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], edi
mov al, 1
test al, al
jne 0x49e0fe
jmp 0x49db99
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push eax
call fcn.00499cf0
add esp, 4
cmp eax, 0x7d
mov eax, dword [esp + 0x80]
jne 0x49df88
mov edx, dword [esp + 0x84]
cmp eax, 0x22
jne 0x49df15
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
jmp 0x49dd7c
movsd xmm0, qword [esp + 0xb8]
mov ecx, dword [esp]
movsd xmm2, qword [esp + 0xb0]
movsd xmm1, qword [esp + 0xa8]
mov ebx, dword [esp + 4]
movsd qword [ecx + 0x38], xmm0
movsd qword [ecx + 0x30], xmm2
movsd qword [ecx + 0x28], xmm1
movsd xmm2, qword [esp + 0xa0]
movsd xmm1, qword [esp + 0x98]
movsd qword [ecx + 0x20], xmm2
movsd qword [ecx + 0x18], xmm1
movsd xmm1, qword [esp + 0x90]
movsd xmm2, qword [esp + 0x88]
movsd qword [ecx + 0x10], xmm1
movsd qword [ecx + 8], xmm2
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x49db99
cmp eax, 0x19
je 0x49dfcb
mov ebx, dword [esp + 4]
cmp eax, 0x22
jne 0x49e13c
mov ecx, dword [esp + 0x84]
mov al, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jmp 0x49e00a
mov ecx, dword [esp + 0xc0]
add eax, 0xfffffffe
mov esi, ebx
add ecx, dword [eax*4 + 0x49e434]
jmp ecx
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0xa0]
cmp byte [ebx + 0x67], 0
je 0x49e236
mov ebx, dword [esp + 4]
test ecx, ecx
je 0x49dffa
push eax
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x34]
mov edx, esi
call fcn.0049fba0
lea eax, [esp + 0x124]
mov dword [esp + 0x140], 5
mov dword [esp + 0x124], 0x19
lea ecx, [esp + 0xe4]
lea edx, [esp + 0x34]
push eax
lea eax, [esp + 0x144]
push eax
call fcn.0049ffd0
add esp, 8
mov eax, dword [esp + 0xe4]
cmp eax, 0x22
jne 0x49e1b2
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x20], 2
mov dword [esp + 0x78], eax
mov al, 1
mov dword [esp + 0x24], eax
mov al, 1
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov ebx, dword [esp + 8]
cmp eax, ebx
jne 0x49dd9a
mov eax, dword [edi + 8]
mov esi, dword [esp]
movsd xmm1, qword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
lea ecx, [esi + 0x1c]
movsd xmm0, qword [edi]
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x34], xmm1
mov dword [esp + 0x3c], eax
push ebx
call fcn.004a0200
add esp, 4
movsd xmm0, qword [esp + 0x44]
movsd xmm2, qword [esp + 0x34]
movsd xmm1, qword [esp + 0x3c]
movsd qword [esi + 0x38], xmm0
movsd qword [esi + 0x30], xmm1
movsd qword [esi + 0x28], xmm2
mov dword [esi], 0x1a
mov ebx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
test al, al
je 0x49db99
test cl, cl
je 0x49db99
cmp dword [esp + 0x80], 0x22
je 0x49db99
cmp dword [esp + 0x9c], 0
je 0x49db99
push dword [esp + 0xa0]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x49db99
mov edx, dword [esp]
movsd xmm2, qword [esp + 0xb0]
movsd xmm1, qword [esp + 0xa8]
movsd xmm0, qword [esp + 0xb8]
mov ecx, dword [esp + 0x84]
movsd qword [edx + 0x30], xmm2
movsd qword [edx + 0x28], xmm1
movsd xmm2, qword [esp + 0xa0]
movsd xmm1, qword [esp + 0x98]
movsd qword [edx + 0x38], xmm0
movsd qword [edx + 0x20], xmm2
movsd qword [edx + 0x18], xmm1
movsd xmm2, qword [esp + 0x90]
movsd xmm1, qword [esp + 0x88]
movsd qword [edx + 0x10], xmm2
movsd qword [edx + 8], xmm1
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x49db99
mov edx, dword [esp]
movsd xmm2, qword [esp + 0x114]
movsd xmm1, qword [esp + 0x10c]
movsd xmm0, qword [esp + 0x11c]
mov ecx, dword [esp + 0xe8]
movsd qword [edx + 0x30], xmm2
movsd qword [edx + 0x28], xmm1
movsd xmm2, qword [esp + 0x104]
movsd xmm1, qword [esp + 0xfc]
movsd qword [edx + 0x38], xmm0
movsd qword [edx + 0x20], xmm2
movsd qword [edx + 0x18], xmm1
movsd xmm2, qword [esp + 0xf4]
movsd xmm1, qword [esp + 0xec]
movsd qword [edx + 0x10], xmm2
movsd qword [edx + 8], xmm1
mov dword [edx], eax
mov eax, dword [esp + 0x14]
mov dword [edx + 4], ecx
mov cl, 1
test al, al
jne 0x49e0fe
jmp 0x49db99
mov esi, dword [esp]
movsd xmm1, qword [esp + 0x88]
mov edx, dword [esp + 0x98]
movsd xmm0, qword [esp + 0x90]
movsd xmm3, qword [esp + 0x80]
movsd xmm2, qword [esp + 0xa4]
mov ebx, dword [esp + 4]
movsd qword [esi + 8], xmm1
movsd xmm1, qword [esp + 0xac]
mov dword [esi + 0x18], edx
movsd qword [esi + 0x10], xmm0
movsd qword [esi], xmm3
mov edx, dword [esp + 0xbc]
movsd qword [esi + 0x24], xmm2
movsd qword [esi + 0x2c], xmm1
movsd xmm1, qword [esp + 0xb4]
mov dword [esi + 0x3c], edx
movsd qword [esi + 0x34], xmm1
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], eax
jmp 0x49db99
mov ecx, str.assertion_failed:_self.char____
mov edx, 0x24
push 0x4e886c
call fcn.004d6490
call fcn.0041f600
mov ecx, 4
mov edx, 8
call fcn.004d6180
or eax, 0x1700000a
pop es
add byte [eax], al
pop ss
pop es
add byte [eax], al
push ss
or al, byte [eax]
add byte [edi], dl
pop es
add byte [eax], al
pop ds
or al, byte [eax]
add byte [eax], ch
or al, byte [eax]
add byte [ecx], dh
or al, byte [eax]
add byte [edx + ecx], al
add byte [eax], al
add al, 0xa
add byte [eax], al
int3