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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x178
mov eax, dword [edx + 8]
mov ebx, dword [edx + 4]
mov dword [esp + 0x28], ecx
call 0x49ea9e
pop ecx
xor edi, edi
mov dword [esp + 0xcc], edx
mov dword [esp + 0x14], ecx
test eax, eax
je 0x49eabe
cmp byte [ebx + eax - 1], 0x2f
jne 0x49eabc
dec eax
jne 0x49eab0
jmp 0x49eabe
mov edi, eax
lea esi, [esp + 0x118]
mov edx, ebx
mov ecx, esi
push 3
push 0x8fe3f9
push edi
call fcn.004210e0
add esp, 0xc
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], edi
mov word [esp + 0x160], 1
mov dword [esp + 0x168], 1
lea ecx, [esp + 0x70]
mov edx, esi
mov edi, dword [esp + 0x148]
call fcn.0049f870
test byte [esp + 0x70], 1
je 0x49eb35
mov ecx, dword [esp + 0x158]
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
sub esi, ecx
add edi, ecx
mov dword [esp + 0x158], eax
jmp 0x49eb88
cmp byte [esp + 0x161], 0
je 0x49eb4b
xor edx, edx
mov edi, 4
jmp 0x49f168
mov byte [esp + 0x161], 1
cmp byte [esp + 0x160], 1
jne 0x49eb6d
mov edi, dword [esp + 0x158]
mov esi, dword [esp + 0x15c]
jmp 0x49eb7f
mov edi, dword [esp + 0x158]
mov esi, dword [esp + 0x15c]
cmp esi, edi
je 0x49eb3f
sub esi, edi
add edi, dword [esp + 0x148]
mov dword [esp + 0x10], ebx
xor ecx, ecx
mov edx, 0x20
movzx eax, byte [0x90320d]
call fcn.0049d570
test eax, eax
je 0x49f619
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 1
lea edi, [esp + 0x70]
lea esi, [esp + 0x118]
mov ecx, 0x16
rep movsd dword es:[edi], dword [esi]
mov esi, 1
jmp 0x49ec09
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
sub ebx, edi
add edi, dword [esp + 0xa0]
cmp esi, dword [esp + 0x34]
je 0x49ec78
mov dword [eax + esi*8], edi
mov dword [eax + esi*8 + 4], ebx
inc esi
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0xc0]
cmp ecx, 1
je 0x49eca0
test ecx, ecx
je 0x49ecf9
dec ecx
mov dword [esp + 0xc0], ecx
cmp byte [esp + 0xb9], 0
jne 0x49ecf9
mov edi, dword [esp + 0xa0]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x70]
mov dword [esp], eax
call fcn.0049f870
test byte [esp + 0x40], 1
je 0x49ecc0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xb0]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0xb0], eax
mov eax, dword [esp]
sub ebx, ecx
add edi, ecx
cmp esi, dword [esp + 0x34]
jne 0x49ebfd
lea ecx, [esp + 0x34]
mov edx, esi
push 8
push 4
push 1
call fcn.004f2050
add esp, 0xc
mov eax, dword [esp + 0x38]
jmp 0x49ebfd
mov dword [esp + 0xc0], 0
cmp byte [esp + 0xb9], 0
je 0x49eccd
jmp 0x49ecf9
cmp byte [esp + 0xb9], 0
mov eax, dword [esp]
jne 0x49ecf9
mov byte [esp + 0xb9], 1
cmp byte [esp + 0xb8], 1
je 0x49ebe0
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
cmp ebx, edi
jne 0x49ebee
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
cmp esi, 2
mov dword [esp + 0x30], 0x50
mov dword [esp], edx
jne 0x49ed53
mov edx, dword [edi + 4]
mov ebx, dword [esp + 0x10]
add edx, 0xfffffffc
cmp edx, 3
ja 0x49f101
lea eax, [edi + 8]
mov ecx, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
add eax, dword [edx*4 + 0x49f7c4]
jmp eax
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], 0
mov eax, edi
lea ecx, [edi + esi*8]
cmp eax, ecx
je 0x49f168
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0xec], 0x40
mov dword [esp + 4], edi
mov dword [esp + 0xf0], ecx
lea ecx, [esp + 0xec]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], 0x40
mov byte [esp + 0x104], 1
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], eax
mov word [esp + 0x110], 1
mov dword [esp + 0x114], 1
call fcn.0049fca0
test eax, eax
je 0x49f03e
mov esi, eax
movzx eax, byte [0x90320d]
mov edi, edx
xor ecx, ecx
mov edx, 0x20
call fcn.0049d570
test eax, eax
je 0x49f619
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [esp + 0x40], 4
mov dword [esp + 0x44], eax
mov ecx, eax
mov edi, 1
mov dword [esp + 0x48], 1
movsd xmm2, qword [esp + 0x104]
movsd xmm1, qword [esp + 0xfc]
mov eax, dword [esp + 0x114]
movsd xmm0, qword [esp + 0x10c]
movsd qword [esp + 0x88], xmm2
movsd qword [esp + 0x80], xmm1
movsd xmm2, qword [esp + 0xec]
movsd xmm1, qword [esp + 0xf4]
mov dword [esp + 0x98], eax
movsd qword [esp + 0x90], xmm0
movsd qword [esp + 0x78], xmm1
movsd qword [esp + 0x70], xmm2
jmp 0x49eec6
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
sub esi, ebx
add ebx, dword [esp + 0x74]
cmp edi, dword [esp + 0x40]
je 0x49eefd
mov dword [ecx + edi*8], ebx
mov dword [ecx + edi*8 + 4], esi
inc edi
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x98]
cmp eax, 1
je 0x49ef20
test eax, eax
je 0x49ef61
dec eax
mov esi, ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x98], eax
call fcn.0049fca0
test eax, eax
je 0x49ef61
mov ecx, esi
mov ebx, eax
mov esi, edx
cmp edi, dword [esp + 0x40]
jne 0x49eeba
lea ecx, [esp + 0x40]
mov edx, edi
push 8
push 4
push 1
call fcn.004f2050
add esp, 0xc
mov ecx, dword [esp + 0x44]
jmp 0x49eeba
mov dword [esp + 0x98], 0
cmp byte [esp + 0x95], 0
jne 0x49ef61
mov byte [esp + 0x95], 1
cmp byte [esp + 0x94], 1
je 0x49eea0
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
cmp esi, ebx
jne 0x49eeae
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
cmp edi, 2
lea esi, [ecx + edi*8]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ecx
jne 0x49f05b
mov eax, dword [esi - 8]
mov ecx, dword [esi - 4]
mov dword [esp + 0x70], 0x3a
lea edx, [esp + 0x70]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], 0x3a
mov byte [esp + 0x88], 1
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x40]
mov word [esp + 0x94], 1
mov dword [esp + 0x98], 2
call fcn.0049ffc0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
cmp eax, 2
mov dword [esp + 0x14], eax
jne 0x49f129
mov edi, dword [ebx + 4]
test edi, edi
js 0x49f619
mov ecx, dword [ebx]
mov dword [esp + 0x2c], edx
je 0x49f198
movzx eax, byte [0x90320d]
mov dword [esp + 8], ecx
xor ecx, ecx
mov edx, edi
call fcn.0049d570
mov ecx, dword [esp + 8]
test eax, eax
jne 0x49f19d
jmp 0x49f619
mov edi, dword [esp + 4]
xor esi, esi
mov dword [esp + 0xc], 4
mov edx, 0x80000000
mov ecx, 0x80000000
jmp 0x49f326
mov ecx, 0x80000000
mov dword [esp + 0x2c], 0
xor eax, eax
mov edx, 0x80000000
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 4]
cmp dword [esp + 0xc], esi
jne 0x49f247
jmp 0x49f322
mov eax, dword [esp + 0x28]
mov dword [eax], 2
mov dword [eax + 4], 2
mov dword [eax + 0x4c], 0x80000000
mov dword [eax + 0x58], 0
mov byte [eax + 0x60], 9
jmp 0x49f36f
mov ecx, 2
mov edi, 2
jmp 0x49f206
mov eax, dword [esp + 0x28]
mov dword [eax], 2
mov dword [eax + 4], 2
mov dword [eax + 0x4c], 0x80000000
mov dword [eax + 0x58], 0
mov byte [eax + 0x60], 9
test edx, edx
jne 0x49f376
jmp 0x49f385
mov eax, 1
mov dword [esp + 0x20], edi
push edi
push ecx
mov dword [esp + 0x74], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edi, dword [ebx + 0xc]
test edi, edi
js 0x49f619
mov ecx, dword [ebx + 8]
je 0x49f1e1
movzx eax, byte [0x90320d]
mov dword [esp + 8], ecx
xor ecx, ecx
mov edx, edi
call fcn.0049d570
mov ecx, dword [esp + 8]
test eax, eax
jne 0x49f1e6
jmp 0x49f619
mov eax, 1
mov dword [esp + 8], edi
push edi
push ecx
mov dword [esp + 0x70], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov edi, 3
test edx, edx
je 0x49f21d
push ebx
push 0
push dword [0x903200]
mov ebx, ecx
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, ebx
cmp dword [esp + 0x14], 2
jne 0x49f2c7
mov edx, dword [esp + 8]
add esi, 0xfffffff8
mov dword [esp + 0x2c], ecx
mov eax, edx
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 4]
cmp dword [esp + 0xc], esi
je 0x49f322
mov dword [esp + 0x20], ecx
mov ecx, dword [esi - 8]
mov dword [esp + 0xe8], eax
mov eax, dword [esi - 4]
mov dword [esp + 8], edx
mov dword [esp + 0x40], 0x3a
lea edx, [esp + 0x40]
mov dword [esp + 0x44], ecx
mov esi, ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x3a
mov byte [esp + 0x58], 1
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
mov word [esp + 0x64], 1
call fcn.004a01d0
test byte [esp + 0x70], 1
je 0x49f30f
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
sub ebx, ecx
add esi, ecx
mov dword [esp + 0x5c], eax
jmp 0x49f418
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0x10]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov edx, dword [esp + 0x68]
mov dword [eax + 0x18], esi
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x18]
mov dword [eax + 0x14], edx
mov dword [eax + 0x4c], 0x80000000
mov dword [eax + 0x58], 0
mov byte [eax + 0x60], 9
test esi, esi
jne 0x49f35d
jmp 0x49f36f
cmp byte [esp + 0x65], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
je 0x49f3ea
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
test edx, 0x7fffffff
mov dword [eax], 2
mov dword [eax + 4], 2
mov dword [eax + 0x4c], 0x80000000
mov dword [eax + 0x58], 0
mov byte [eax + 0x60], 9
jne 0x49f3a8
test ecx, 0x7fffffff
jne 0x49f3ce
test esi, esi
je 0x49f36f
push dword [esp + 0xc]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esp]
test edx, edx
je 0x49f385
push edi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0xcc]
cmp dword [eax], 0
je 0x49f3a0
push ebx
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x68]
push 0
push dword [0x903200]
mov dword [esp + 0x24], esi
mov esi, ecx
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, esi
mov esi, dword [esp + 0x18]
test ecx, 0x7fffffff
je 0x49f359
push dword [esp + 0x6c]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
test esi, esi
jne 0x49f35d
jmp 0x49f36f
mov byte [esp + 0x65], 1
cmp byte [esp + 0x64], 1
jne 0x49f400
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
jmp 0x49f410
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x49f322
sub eax, esi
add esi, dword [esp + 0x44]
mov ebx, eax
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 0x20
call fcn.0049d570
test eax, eax
je 0x49f619
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [esp + 0xd0], 4
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], 1
movsd xmm2, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x50]
movsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0x88], xmm2
movsd qword [esp + 0x80], xmm1
movsd xmm2, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
movsd qword [esp + 0x90], xmm0
movsd qword [esp + 0x78], xmm1
movsd qword [esp + 0x70], xmm2
cmp byte [esp + 0x95], 1
jne 0x49f4b4
mov dword [esp + 0x1c], esi
xor edi, edi
mov edx, 4
jmp 0x49f5f4
mov ebx, 1
jmp 0x49f508
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x14]
sub edi, ecx
add esi, ecx
cmp ebx, dword [esp + 0xd0]
je 0x49f579
mov dword [eax + ebx*8], esi
mov dword [eax + ebx*8 + 4], edi
inc ebx
cmp byte [esp + 0x95], 0
mov dword [esp + 0xd8], ebx
jne 0x49f59c
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x70]
mov dword [esp + 0x14], eax
call fcn.004a01d0
test byte [esp + 0x34], 1
jne 0x49f4c0
cmp byte [esp + 0x95], 0
mov eax, dword [esp + 0x14]
jne 0x49f59c
mov byte [esp + 0x95], 1
cmp byte [esp + 0x94], 1
jne 0x49f554
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
jmp 0x49f566
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
cmp edi, esi
je 0x49f59c
sub edi, esi
add esi, dword [esp + 0x74]
cmp ebx, dword [esp + 0xd0]
jne 0x49f4eb
lea ecx, [esp + 0xd0]
mov edx, ebx
push 8
push 4
push 1
call fcn.004f2050
add esp, 0xc
mov eax, dword [esp + 0xd4]
jmp 0x49f4eb
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
test ebx, ebx
je 0x49f5c0
mov ecx, dword [eax]
cmp ebx, 1
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
jne 0x49f5ec
xor edi, edi
jmp 0x49f5f2
mov esi, dword [esp + 0x18]
test edx, edx
je 0x49f5d7
push eax
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
jmp 0x49f326
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov ebx, ecx
test ebx, ebx
js 0x49f619
mov dword [esp + 0xe4], edx
mov dword [esp + 0x14], eax
je 0x49f61b
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, ebx
call fcn.0049d570
test eax, eax
jne 0x49f620
ud2
mov eax, 1
push ebx
push dword [esp + 0x20]
mov dword [esp + 0xe4], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov al, 1
test edi, edi
mov dword [esp + 0xe0], ebx
mov dword [esp + 0x1c], eax
je 0x49f765
mov edx, dword [esp]
test esi, esi
je 0x49f6b2
cmp esi, 1
jne 0x49f66d
movzx eax, byte [edi]
cmp eax, 0x2b
je 0x49f6b2
mov esi, 1
cmp eax, 0x2d
je 0x49f6b2
jmp 0x49f788
cmp byte [edi], 0x2b
jne 0x49f77f
inc edi
cmp esi, 0xa
lea esi, [esi - 1]
jb 0x49f788
xor ebx, ebx
mov ecx, 0xa
sub esi, 1
jb 0x49f7a3
mov eax, ebx
mul ecx
jo 0x49f765
mov ebx, eax
movzx eax, byte [edi]
mov edx, dword [esp]
add eax, 0xffffffd0
cmp eax, 9
ja 0x49f6b2
inc edi
add ebx, eax
jae 0x49f68a
cmp dword [esp + 0xe4], 0
mov esi, dword [esp + 4]
je 0x49f6d5
push dword [esp + 0x14]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esp]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xe0]
mov edi, dword [esp + 0xdc]
cmp byte [esp + 0x1c], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
cmovne ebx, dword [esp + 0x30]
cmp dword [esp + 0x18], 0
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0xe8]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x28], ebx
mov byte [eax + 0x2c], cl
mov dword [eax], 3
je 0x49f753
push dword [esp + 0xc]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esp]
mov ebx, dword [esp + 0x10]
test edx, edx
je 0x49f385
push esi
jmp 0x49f377
mov edx, dword [esp]
cmp dword [esp + 0xe4], 0
mov esi, dword [esp + 4]
jne 0x49f6c0
jmp 0x49f6d5
cmp esi, 9
jae 0x49f683
xor ebx, ebx
movzx eax, byte [edi]
add eax, 0xffffffd0
cmp eax, 9
ja 0x49f6b2
lea ecx, [ebx + ebx*4]
inc edi
dec esi
lea ebx, [eax + ecx*2]
jne 0x49f78a
mov dword [esp + 0x1c], 0
cmp dword [esp + 0xe4], 0
mov esi, dword [esp + 4]
jne 0x49f6c0
jmp 0x49f6d5