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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x68], edx
mov esi, dword [eax + 8]
mov ecx, dword [eax + 4]
mov edx, esi
mov dword [esp + 0x58], ecx
push 0x11
push 0xfbdc94
call fcn.004ac560
add esp, 8
test eax, eax
mov dword [esp + 8], esi
je 0x4a9e27
xor edi, edi
mov dword [esp + 0x28], 0x2c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0x2c
mov byte [esp + 0x40], 1
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], edx
mov dword [esp + 4], edx
mov word [esp + 0x4c], 1
nop
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x28]
call fcn.00497200
test byte [esp + 0xc], 1
je 0x4a9e2e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x44], eax
add esi, ecx
sub ebx, ecx
test byte [esp + 0x4d], 1
mov edi, esi
je 0x4a9df0
jmp 0x4a9e60
xor ebx, ebx
jmp 0x4a9eb8
cmp byte [esp + 0x4d], 0
je 0x4a9e3b
test edi, edi
jne 0x4a9e62
jmp 0x4a9eac
cmp byte [esp + 0x4c], 1
jne 0x4a9e4c
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
jmp 0x4a9e58
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x4a9e35
sub eax, esi
add esi, dword [esp + 0x2c]
mov ebx, eax
mov edi, esi
mov ecx, edi
mov edx, ebx
call fcn.004acba0
cmp edx, 7
jne 0x4a9eac
mov ecx, 0x6e756863
mov edx, 0x64656b6e
mov esi, dword [esp + 8]
xor ecx, dword [eax]
xor edx, dword [eax + 3]
cmp dword [esp + 4], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], 0
setne bl
or edx, ecx
jne 0x4a9ed0
jmp 0x4aa55c
cmp dword [esp + 4], 0
mov esi, dword [esp + 8]
setne bl
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x58]
mov edx, esi
push 0xe
push 0xfbdca5
call fcn.004ac560
add esp, 8
test eax, eax
je 0x4a9f1c
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x20]
mov ebx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
test ecx, ecx
je 0x4aa060
cmp edx, ecx
jbe 0x4aa05a
cmp byte [ebx + ecx], 0xbf
jg 0x4aa060
jmp 0x4aa597
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4a9ee9
cmp eax, 2
jne 0x4aa4a1
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
lea ebx, [esp + 0xc]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0xfd03d4
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], eax
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x10], 0x41ad90
call fcn.00415500
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov edi, dword [esp + 0x90]
lea edx, [esp + 0x50]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x50], 0xfbe154
mov dword [esp + 0x28], 0xfbd798
mov dword [esp + 0x2c], 2
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], 0xe
mov dword [esp + 0x34], 2
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0x49bdf0
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xb4]
lea edx, [esp + 0x28]
mov dword [esp + 0x18], 0x49bdf0
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], eax
call fcn.00415500
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc0], eax
call fcn.004a7f80
mov eax, dword [esp + 0x20]
movsd xmm0, qword [esp + 0xb4]
movsd xmm1, qword [esp + 0xbc]
test edi, edi
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov dword [esp + 0x24], 1
je 0x4a9ee9
push esi
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4a9ee9
jne 0x4aa597
mov eax, edx
mov esi, 1
xor edi, edi
sub eax, ecx
cmp eax, 3
jb 0x4aa090
movzx eax, word [ebx + ecx]
mov dword [esp + 0x5c], edx
mov edx, ebx
movzx ebx, byte [ebx + ecx + 2]
xor eax, 0x2f3a
xor ebx, 0x2f
or bx, ax
je 0x4aa45e
mov eax, 1
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
call fcn.004cb330
test eax, eax
cmovne esi, eax
cmove edx, eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], edx
or edx, edi
jne 0x4aa0ce
mov edi, dword [esp + 8]
jmp 0x4aa2c5
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x58]
mov edx, edi
push 0xd
push 0xfbe162
call fcn.004ac560
add esp, 8
test eax, eax
jne 0x4aa2c5
lea eax, [esp + 0x80]
lea edx, [esp + 0x88]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xfbda0c
mov dword [esp + 0x2c], 2
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x49bdf0
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x28]
mov dword [esp + 0x18], 0x49bdf0
mov dword [esp + 0x34], 2
call fcn.00415500
mov edi, dword [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
lea esi, [esp + 0x6c]
mov ecx, esi
mov edx, edi
push dword [esp + 0xa4]
call fcn.004bf230
add esp, 4
test ebx, ebx
je 0x4aa185
push edi
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ebx, [esp + 0xc]
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x28]
mov dword [esp + 0xc], esi
mov dword [esp + 0x28], 0xfbe178
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], 0x407160
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 1
call fcn.00415500
mov esi, dword [esp + 0xac]
mov eax, dword [esp + 0xb0]
mov edi, dword [esp + 0xa8]
lea edx, [esp + 0x60]
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], 0xfbe180
mov dword [esp + 0x28], 0xfbd798
mov dword [esp + 0x2c], 2
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x64], 0xd
mov dword [esp + 0x34], 2
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0x49bdf0
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xd4]
lea edx, [esp + 0x28]
mov dword [esp + 0x18], 0x49bdf0
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
call fcn.00415500
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x64]
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0xe0], eax
jne 0x4aa268
lea ecx, [esp + 0x1c]
call fcn.004a7f80
mov eax, dword [esp + 0x20]
movsd xmm0, qword [esp + 0xd4]
movsd xmm1, qword [esp + 0xdc]
mov ecx, ebx
inc ebx
shl ecx, 4
test edi, edi
movsd qword [eax + ecx + 8], xmm1
movsd qword [eax + ecx], xmm0
mov dword [esp + 0x24], ebx
je 0x4aa2a6
push esi
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x6c], 0
je 0x4aa2bf
push dword [esp + 0x70]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x18]
mov edi, dword [eax + 8]
mov eax, dword [ebp + 0x18]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [esp + 8], ecx
sub eax, edi
cmp eax, esi
jb 0x4aa567
mov ecx, dword [ebp + 0x18]
mov eax, edi
mov ebx, edi
shl eax, 4
add eax, dword [ecx + 4]
mov edi, ecx
mov ecx, esi
shl ecx, 4
push ecx
mov dword [esp + 0x60], edx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x68]
add ebx, esi
mov dword [edi + 8], ebx
lock inc dword [eax]
jle 0x4aa597
mov eax, dword [ebp + 8]
lock inc dword [eax]
jle 0x4aa597
mov esi, dword [ebp + 0x10]
test esi, esi
js 0x4aa597
je 0x4aa34b
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, esi
call fcn.00494530
test eax, eax
jne 0x4aa350
jmp 0x4aa597
mov eax, 1
push esi
push dword [ebp + 0xc]
mov dword [esp + 0x60], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x18]
test edi, edi
js 0x4aa597
mov ebx, dword [eax + 0x14]
je 0x4aa390
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, edi
call fcn.00494530
test eax, eax
je 0x4aa597
mov esi, eax
jmp 0x4aa395
mov esi, 1
push edi
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x7c]
mov ebx, dword [ebp + 0x18]
cmp dword [esp + 8], 0
movzx eax, byte [edx + 0x44]
movsd xmm0, qword [edx + 0x34]
movsd xmm1, qword [edx + 0x3c]
mov byte [ecx + 0x44], al
mov eax, dword [ebx + 8]
movsd qword [ecx + 0x34], xmm0
movsd qword [ecx + 0x3c], xmm1
movsd xmm0, qword [ebx]
mov ebx, dword [esp + 0x58]
mov dword [ecx + 0x74], eax
mov eax, dword [esp + 0x68]
movsd qword [ecx + 0x6c], xmm0
movups xmm0, xmmword [edx + 0x20]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], ebx
mov dword [ecx + 0x68], eax
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x18], edi
mov esi, dword [ebp + 0x2c]
mov dword [ecx + 0x1c], eax
mov eax, dword [edx + 0x30]
movups xmmword [ecx + 0x20], xmm0
mov edx, dword [ebp + 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 4]
mov byte [ecx + 0x78], al
mov dword [ecx + 0x4c], edx
mov edx, dword [ebp + 0x34]
mov dword [ecx + 0x48], esi
mov dword [ecx + 0x50], edx
je 0x4aa456
push dword [esp + 0x5c]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ebx, edx
add ecx, 3
mov edx, dword [eax + 0x24]
mov eax, 1
mov dword [esp + 0x78], edx
sub edx, ecx
jbe 0x4aa095
mov edi, edx
mov edx, dword [esp + 0x5c]
test ecx, ecx
mov eax, ebx
je 0x4aa589
cmp ecx, edx
jae 0x4aa587
cmp byte [eax + ecx], 0xbf
jg 0x4aa589
jmp 0x4aa597
test bl, bl
jne 0x4a9ee9
lea eax, [esp + 0x50]
lea edx, [esp + 0x6c]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xfbd798
mov dword [esp + 0x2c], 2
mov dword [esp + 0x38], 0
mov dword [esp + 0x50], 0xfbe13c
mov dword [esp + 0x6c], 0xfbe14d
mov dword [esp + 0x54], 0x11
mov dword [esp + 0x70], 7
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x49bdf0
mov dword [esp + 0x14], edx
lea ecx, [esp + 0xc4]
lea edx, [esp + 0x28]
mov dword [esp + 0x18], 0x49bdf0
mov dword [esp + 0x34], 2
call fcn.00415500
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xd0], eax
call fcn.004a7f80
mov eax, dword [esp + 0x20]
movsd xmm0, qword [esp + 0xc4]
movsd xmm1, qword [esp + 0xcc]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov dword [esp + 0x24], 1
mov al, 1
mov dword [esp + 4], eax
jmp 0x4a9ef1
mov ebx, edx
mov edx, edi
mov edi, dword [ebp + 0x18]
mov ecx, edi
push 0x10
push 4
push esi
call fcn.004ea1e0
mov edx, ebx
add esp, 0xc
mov edi, dword [edi + 8]
jmp 0x4aa2e4
jne 0x4aa597
mov ebx, dword [esp + 0x78]
cmp ebx, edx
jae 0x4aa599
cmp byte [eax + ebx], 0xbf
jg 0x4aa59b
ud2
jne 0x4aa597
add eax, ecx
jmp 0x4aa095