Function at 0x49a9b0
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 0x49a9ce
pop ecx
xor edi, edi
mov dword [esp + 0xcc], edx
mov dword [esp + 0x14], ecx
test eax, eax
je 0x49a9ee
cmp byte [ebx + eax - 1], 0x2f
jne 0x49a9ec
dec eax
jne 0x49a9e0
jmp 0x49a9ee
mov edi, eax
lea esi, [esp + 0x118]
mov edx, ebx
mov ecx, esi
push 3
push 0x5f6ced
push edi
call fcn.004153d0
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.0049b8c0
test byte [esp + 0x70], 1
je 0x49aa65
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 0x49aab8
cmp byte [esp + 0x161], 0
je 0x49aa7b
xor edx, edx
mov edi, 4
jmp 0x49b098
mov byte [esp + 0x161], 1
cmp byte [esp + 0x160], 1
jne 0x49aa9d
mov edi, dword [esp + 0x158]
mov esi, dword [esp + 0x15c]
jmp 0x49aaaf
mov edi, dword [esp + 0x158]
mov esi, dword [esp + 0x15c]
cmp esi, edi
je 0x49aa6f
sub esi, edi
add edi, dword [esp + 0x148]
mov dword [esp + 0x10], ebx
xor ecx, ecx
mov edx, 0x20
movzx eax, byte [0x6019e5]
call fcn.00499510
test eax, eax
je 0x49b549
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 0x49ab39
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
sub ebx, edi
add edi, dword [esp + 0xa0]
cmp esi, dword [esp + 0x34]
je 0x49aba8
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 0x49abd0
test ecx, ecx
je 0x49ac29
dec ecx
mov dword [esp + 0xc0], ecx
cmp byte [esp + 0xb9], 0
jne 0x49ac29
mov edi, dword [esp + 0xa0]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x70]
mov dword [esp], eax
call fcn.0049b8c0
test byte [esp + 0x40], 1
je 0x49abf0
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 0x49ab2d
lea ecx, [esp + 0x34]
mov edx, esi
push 8
push 4
push 1
call fcn.00500270
add esp, 0xc
mov eax, dword [esp + 0x38]
jmp 0x49ab2d
mov dword [esp + 0xc0], 0
cmp byte [esp + 0xb9], 0
je 0x49abfd
jmp 0x49ac29
cmp byte [esp + 0xb9], 0
mov eax, dword [esp]
jne 0x49ac29
mov byte [esp + 0xb9], 1
cmp byte [esp + 0xb8], 1
je 0x49ab10
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
cmp ebx, edi
jne 0x49ab1e
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
cmp esi, 2
mov dword [esp + 0x30], 0x50
mov dword [esp], edx
jne 0x49ac83
mov edx, dword [edi + 4]
mov ebx, dword [esp + 0x10]
add edx, 0xfffffffc
cmp edx, 3
ja 0x49b031
lea eax, [edi + 8]
mov ecx, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
add eax, dword [edx*4 + 0x49b6f4]
jmp eax
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], 0
mov eax, edi
lea ecx, [edi + esi*8]
cmp eax, ecx
je 0x49b098
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.0049bcf0
test eax, eax
je 0x49af6e
mov esi, eax
movzx eax, byte [0x6019e5]
mov edi, edx
xor ecx, ecx
mov edx, 0x20
call fcn.00499510
test eax, eax
je 0x49b549
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 0x49adf6
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
sub esi, ebx
add ebx, dword [esp + 0x74]
cmp edi, dword [esp + 0x40]
je 0x49ae2d
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 0x49ae50
test eax, eax
je 0x49ae91
dec eax
mov esi, ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x98], eax
call fcn.0049bcf0
test eax, eax
je 0x49ae91
mov ecx, esi
mov ebx, eax
mov esi, edx
cmp edi, dword [esp + 0x40]
jne 0x49adea
lea ecx, [esp + 0x40]
mov edx, edi
push 8
push 4
push 1
call fcn.00500270
add esp, 0xc
mov ecx, dword [esp + 0x44]
jmp 0x49adea
mov dword [esp + 0x98], 0
cmp byte [esp + 0x95], 0
jne 0x49ae91
mov byte [esp + 0x95], 1
cmp byte [esp + 0x94], 1
je 0x49add0
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
cmp esi, ebx
jne 0x49adde
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 0x49af8b
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.0049c010
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
cmp eax, 2
mov dword [esp + 0x14], eax
jne 0x49b059
mov edi, dword [ebx + 4]
test edi, edi
js 0x49b549
mov ecx, dword [ebx]
mov dword [esp + 0x2c], edx
je 0x49b0c8
movzx eax, byte [0x6019e5]
mov dword [esp + 8], ecx
xor ecx, ecx
mov edx, edi
call fcn.00499510
mov ecx, dword [esp + 8]
test eax, eax
jne 0x49b0cd
jmp 0x49b549
mov edi, dword [esp + 4]
xor esi, esi
mov dword [esp + 0xc], 4
mov edx, 0x80000000
mov ecx, 0x80000000
jmp 0x49b256
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 0x49b177
jmp 0x49b252
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 0x49b29f
mov ecx, 2
mov edi, 2
jmp 0x49b136
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 0x49b2a6
jmp 0x49b2b5
mov eax, 1
mov dword [esp + 0x20], edi
push edi
push ecx
mov dword [esp + 0x74], eax
push eax
call fcn.004ef180
add esp, 0xc
mov edi, dword [ebx + 0xc]
test edi, edi
js 0x49b549
mov ecx, dword [ebx + 8]
je 0x49b111
movzx eax, byte [0x6019e5]
mov dword [esp + 8], ecx
xor ecx, ecx
mov edx, edi
call fcn.00499510
mov ecx, dword [esp + 8]
test eax, eax
jne 0x49b116
jmp 0x49b549
mov eax, 1
mov dword [esp + 8], edi
push edi
push ecx
mov dword [esp + 0x70], eax
push eax
call fcn.004ef180
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov edi, 3
test edx, edx
je 0x49b14d
push ebx
push 0
push dword [0x6019d8]
mov ebx, ecx
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, ebx
cmp dword [esp + 0x14], 2
jne 0x49b1f7
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 0x49b252
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.0049c220
test byte [esp + 0x70], 1
je 0x49b23f
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 0x49b348
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 0x49b28d
jmp 0x49b29f
cmp byte [esp + 0x65], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
je 0x49b31a
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 0x49b2d8
test ecx, 0x7fffffff
jne 0x49b2fe
test esi, esi
je 0x49b29f
push dword [esp + 0xc]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esp]
test edx, edx
je 0x49b2b5
push edi
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0xcc]
cmp dword [eax], 0
je 0x49b2d0
push ebx
push 0
push dword [0x6019d8]
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 [0x6019d8]
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 0x49b289
push dword [esp + 0x6c]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
test esi, esi
jne 0x49b28d
jmp 0x49b29f
mov byte [esp + 0x65], 1
cmp byte [esp + 0x64], 1
jne 0x49b330
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
jmp 0x49b340
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x49b252
sub eax, esi
add esi, dword [esp + 0x44]
mov ebx, eax
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, 0x20
call fcn.00499510
test eax, eax
je 0x49b549
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 0x49b3e4
mov dword [esp + 0x1c], esi
xor edi, edi
mov edx, 4
jmp 0x49b524
mov ebx, 1
jmp 0x49b438
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 0x49b4a9
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 0x49b4cc
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x70]
mov dword [esp + 0x14], eax
call fcn.0049c220
test byte [esp + 0x34], 1
jne 0x49b3f0
cmp byte [esp + 0x95], 0
mov eax, dword [esp + 0x14]
jne 0x49b4cc
mov byte [esp + 0x95], 1
cmp byte [esp + 0x94], 1
jne 0x49b484
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
jmp 0x49b496
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
cmp edi, esi
je 0x49b4cc
sub edi, esi
add esi, dword [esp + 0x74]
cmp ebx, dword [esp + 0xd0]
jne 0x49b41b
lea ecx, [esp + 0xd0]
mov edx, ebx
push 8
push 4
push 1
call fcn.00500270
add esp, 0xc
mov eax, dword [esp + 0xd4]
jmp 0x49b41b
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
test ebx, ebx
je 0x49b4f0
mov ecx, dword [eax]
cmp ebx, 1
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
jne 0x49b51c
xor edi, edi
jmp 0x49b522
mov esi, dword [esp + 0x18]
test edx, edx
je 0x49b507
push eax
push 0
push dword [0x6019d8]
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 0x49b256
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov ebx, ecx
test ebx, ebx
js 0x49b549
mov dword [esp + 0xe4], edx
mov dword [esp + 0x14], eax
je 0x49b54b
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, ebx
call fcn.00499510
test eax, eax
jne 0x49b550
ud2
mov eax, 1
push ebx
push dword [esp + 0x20]
mov dword [esp + 0xe4], eax
push eax
call fcn.004ef180
add esp, 0xc
mov al, 1
test edi, edi
mov dword [esp + 0xe0], ebx
mov dword [esp + 0x1c], eax
je 0x49b695
mov edx, dword [esp]
test esi, esi
je 0x49b5e2
cmp esi, 1
jne 0x49b59d
movzx eax, byte [edi]
cmp eax, 0x2b
je 0x49b5e2
mov esi, 1
cmp eax, 0x2d
je 0x49b5e2
jmp 0x49b6b8
cmp byte [edi], 0x2b
jne 0x49b6af
inc edi
cmp esi, 0xa
lea esi, [esi - 1]
jb 0x49b6b8
xor ebx, ebx
mov ecx, 0xa
sub esi, 1
jb 0x49b6d3
mov eax, ebx
mul ecx
jo 0x49b695
mov ebx, eax
movzx eax, byte [edi]
mov edx, dword [esp]
add eax, 0xffffffd0
cmp eax, 9
ja 0x49b5e2
inc edi
add ebx, eax
jae 0x49b5ba
cmp dword [esp + 0xe4], 0
mov esi, dword [esp + 4]
je 0x49b605
push dword [esp + 0x14]
push 0
push dword [0x6019d8]
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 0x49b683
push dword [esp + 0xc]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esp]
mov ebx, dword [esp + 0x10]
test edx, edx
je 0x49b2b5
push esi
jmp 0x49b2a7
mov edx, dword [esp]
cmp dword [esp + 0xe4], 0
mov esi, dword [esp + 4]
jne 0x49b5f0
jmp 0x49b605
cmp esi, 9
jae 0x49b5b3
xor ebx, ebx
movzx eax, byte [edi]
add eax, 0xffffffd0
cmp eax, 9
ja 0x49b5e2
lea ecx, [ebx + ebx*4]
inc edi
dec esi
lea ebx, [eax + ecx*2]
jne 0x49b6ba
mov dword [esp + 0x1c], 0
cmp dword [esp + 0xe4], 0
mov esi, dword [esp + 4]
jne 0x49b5f0
jmp 0x49b605