Function at 0x495990
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 0x4959ae
pop ecx
xor edi, edi
mov dword [esp + 0xcc], edx
mov dword [esp + 0x14], ecx
test eax, eax
je 0x4959ce
cmp byte [ebx + eax - 1], 0x2f
jne 0x4959cc
dec eax
jne 0x4959c0
jmp 0x4959ce
mov edi, eax
lea esi, [esp + 0x118]
mov edx, ebx
mov ecx, esi
push 3
push 0xfd022d
push edi
call fcn.0041a650
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.004968a0
test byte [esp + 0x70], 1
je 0x495a45
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 0x495a98
cmp byte [esp + 0x161], 0
je 0x495a5b
xor edx, edx
mov edi, 4
jmp 0x496078
mov byte [esp + 0x161], 1
cmp byte [esp + 0x160], 1
jne 0x495a7d
mov edi, dword [esp + 0x158]
mov esi, dword [esp + 0x15c]
jmp 0x495a8f
mov edi, dword [esp + 0x158]
mov esi, dword [esp + 0x15c]
cmp esi, edi
je 0x495a4f
sub esi, edi
add edi, dword [esp + 0x148]
mov dword [esp + 0x10], ebx
xor ecx, ecx
mov edx, 0x20
movzx eax, byte [0xfd520d]
call fcn.00494530
test eax, eax
je 0x496529
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 0x495b19
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
sub ebx, edi
add edi, dword [esp + 0xa0]
cmp esi, dword [esp + 0x34]
je 0x495b88
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 0x495bb0
test ecx, ecx
je 0x495c09
dec ecx
mov dword [esp + 0xc0], ecx
cmp byte [esp + 0xb9], 0
jne 0x495c09
mov edi, dword [esp + 0xa0]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x70]
mov dword [esp], eax
call fcn.004968a0
test byte [esp + 0x40], 1
je 0x495bd0
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 0x495b0d
lea ecx, [esp + 0x34]
mov edx, esi
push 8
push 4
push 1
call fcn.004ea1e0
add esp, 0xc
mov eax, dword [esp + 0x38]
jmp 0x495b0d
mov dword [esp + 0xc0], 0
cmp byte [esp + 0xb9], 0
je 0x495bdd
jmp 0x495c09
cmp byte [esp + 0xb9], 0
mov eax, dword [esp]
jne 0x495c09
mov byte [esp + 0xb9], 1
cmp byte [esp + 0xb8], 1
je 0x495af0
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
cmp ebx, edi
jne 0x495afe
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
cmp esi, 2
mov dword [esp + 0x30], 0x50
mov dword [esp], edx
jne 0x495c63
mov edx, dword [edi + 4]
mov ebx, dword [esp + 0x10]
add edx, 0xfffffffc
cmp edx, 3
ja 0x496011
lea eax, [edi + 8]
mov ecx, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
add eax, dword [edx*4 + 0x4966d4]
jmp eax
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], 0
mov eax, edi
lea ecx, [edi + esi*8]
cmp eax, ecx
je 0x496078
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.00496cd0
test eax, eax
je 0x495f4e
mov esi, eax
movzx eax, byte [0xfd520d]
mov edi, edx
xor ecx, ecx
mov edx, 0x20
call fcn.00494530
test eax, eax
je 0x496529
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 0x495dd6
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
sub esi, ebx
add ebx, dword [esp + 0x74]
cmp edi, dword [esp + 0x40]
je 0x495e0d
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 0x495e30
test eax, eax
je 0x495e71
dec eax
mov esi, ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x98], eax
call fcn.00496cd0
test eax, eax
je 0x495e71
mov ecx, esi
mov ebx, eax
mov esi, edx
cmp edi, dword [esp + 0x40]
jne 0x495dca
lea ecx, [esp + 0x40]
mov edx, edi
push 8
push 4
push 1
call fcn.004ea1e0
add esp, 0xc
mov ecx, dword [esp + 0x44]
jmp 0x495dca
mov dword [esp + 0x98], 0
cmp byte [esp + 0x95], 0
jne 0x495e71
mov byte [esp + 0x95], 1
cmp byte [esp + 0x94], 1
je 0x495db0
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
cmp esi, ebx
jne 0x495dbe
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 0x495f6b
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.00496ff0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
cmp eax, 2
mov dword [esp + 0x14], eax
jne 0x496039
mov edi, dword [ebx + 4]
test edi, edi
js 0x496529
mov ecx, dword [ebx]
mov dword [esp + 0x2c], edx
je 0x4960a8
movzx eax, byte [0xfd520d]
mov dword [esp + 8], ecx
xor ecx, ecx
mov edx, edi
call fcn.00494530
mov ecx, dword [esp + 8]
test eax, eax
jne 0x4960ad
jmp 0x496529
mov edi, dword [esp + 4]
xor esi, esi
mov dword [esp + 0xc], 4
mov edx, 0x80000000
mov ecx, 0x80000000
jmp 0x496236
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 0x496157
jmp 0x496232
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 0x49627f
mov ecx, 2
mov edi, 2
jmp 0x496116
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 0x496286
jmp 0x496295
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 0x496529
mov ecx, dword [ebx + 8]
je 0x4960f1
movzx eax, byte [0xfd520d]
mov dword [esp + 8], ecx
xor ecx, ecx
mov edx, edi
call fcn.00494530
mov ecx, dword [esp + 8]
test eax, eax
jne 0x4960f6
jmp 0x496529
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 0x49612d
push ebx
push 0
push dword [0xfd5200]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, ebx
cmp dword [esp + 0x14], 2
jne 0x4961d7
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 0x496232
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.00497200
test byte [esp + 0x70], 1
je 0x49621f
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 0x496328
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 0x49626d
jmp 0x49627f
cmp byte [esp + 0x65], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
je 0x4962fa
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 0x4962b8
test ecx, 0x7fffffff
jne 0x4962de
test esi, esi
je 0x49627f
push dword [esp + 0xc]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp]
test edx, edx
je 0x496295
push edi
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0xcc]
cmp dword [eax], 0
je 0x4962b0
push ebx
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
push dword [esp + 0x68]
push 0
push dword [0xfd5200]
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 0x496269
push dword [esp + 0x6c]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x49626d
jmp 0x49627f
mov byte [esp + 0x65], 1
cmp byte [esp + 0x64], 1
jne 0x496310
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
jmp 0x496320
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x496232
sub eax, esi
add esi, dword [esp + 0x44]
mov ebx, eax
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, 0x20
call fcn.00494530
test eax, eax
je 0x496529
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 0x4963c4
mov dword [esp + 0x1c], esi
xor edi, edi
mov edx, 4
jmp 0x496504
mov ebx, 1
jmp 0x496418
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 0x496489
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 0x4964ac
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x70]
mov dword [esp + 0x14], eax
call fcn.00497200
test byte [esp + 0x34], 1
jne 0x4963d0
cmp byte [esp + 0x95], 0
mov eax, dword [esp + 0x14]
jne 0x4964ac
mov byte [esp + 0x95], 1
cmp byte [esp + 0x94], 1
jne 0x496464
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
jmp 0x496476
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
cmp edi, esi
je 0x4964ac
sub edi, esi
add esi, dword [esp + 0x74]
cmp ebx, dword [esp + 0xd0]
jne 0x4963fb
lea ecx, [esp + 0xd0]
mov edx, ebx
push 8
push 4
push 1
call fcn.004ea1e0
add esp, 0xc
mov eax, dword [esp + 0xd4]
jmp 0x4963fb
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
test ebx, ebx
je 0x4964d0
mov ecx, dword [eax]
cmp ebx, 1
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
jne 0x4964fc
xor edi, edi
jmp 0x496502
mov esi, dword [esp + 0x18]
test edx, edx
je 0x4964e7
push eax
push 0
push dword [0xfd5200]
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 0x496236
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov ebx, ecx
test ebx, ebx
js 0x496529
mov dword [esp + 0xe4], edx
mov dword [esp + 0x14], eax
je 0x49652b
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, ebx
call fcn.00494530
test eax, eax
jne 0x496530
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 0x496675
mov edx, dword [esp]
test esi, esi
je 0x4965c2
cmp esi, 1
jne 0x49657d
movzx eax, byte [edi]
cmp eax, 0x2b
je 0x4965c2
mov esi, 1
cmp eax, 0x2d
je 0x4965c2
jmp 0x496698
cmp byte [edi], 0x2b
jne 0x49668f
inc edi
cmp esi, 0xa
lea esi, [esi - 1]
jb 0x496698
xor ebx, ebx
mov ecx, 0xa
sub esi, 1
jb 0x4966b3
mov eax, ebx
mul ecx
jo 0x496675
mov ebx, eax
movzx eax, byte [edi]
mov edx, dword [esp]
add eax, 0xffffffd0
cmp eax, 9
ja 0x4965c2
inc edi
add ebx, eax
jae 0x49659a
cmp dword [esp + 0xe4], 0
mov esi, dword [esp + 4]
je 0x4965e5
push dword [esp + 0x14]
push 0
push dword [0xfd5200]
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 0x496663
push dword [esp + 0xc]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp]
mov ebx, dword [esp + 0x10]
test edx, edx
je 0x496295
push esi
jmp 0x496287
mov edx, dword [esp]
cmp dword [esp + 0xe4], 0
mov esi, dword [esp + 4]
jne 0x4965d0
jmp 0x4965e5
cmp esi, 9
jae 0x496593
xor ebx, ebx
movzx eax, byte [edi]
add eax, 0xffffffd0
cmp eax, 9
ja 0x4965c2
lea ecx, [ebx + ebx*4]
inc edi
dec esi
lea ebx, [eax + ecx*2]
jne 0x49669a
mov dword [esp + 0x1c], 0
cmp dword [esp + 0xe4], 0
mov esi, dword [esp + 4]
jne 0x4965d0
jmp 0x4965e5