Function at 0x492040
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 0x49205e
pop ecx
xor edi, edi
mov dword [esp + 0xcc], edx
mov dword [esp + 0x14], ecx
test eax, eax
je 0x49207e
cmp byte [ebx + eax - 1], 0x2f
jne 0x49207c
dec eax
jne 0x492070
jmp 0x49207e
mov edi, eax
lea esi, [esp + 0x118]
mov edx, ebx
mov ecx, esi
push 3
push 0x77146d
push edi
call fcn.00417450
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.00492e30
test byte [esp + 0x70], 1
je 0x4920f5
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 0x492148
cmp byte [esp + 0x161], 0
je 0x49210b
xor edx, edx
mov edi, 4
jmp 0x492728
mov byte [esp + 0x161], 1
cmp byte [esp + 0x160], 1
jne 0x49212d
mov edi, dword [esp + 0x158]
mov esi, dword [esp + 0x15c]
jmp 0x49213f
mov edi, dword [esp + 0x158]
mov esi, dword [esp + 0x15c]
cmp esi, edi
je 0x4920ff
sub esi, edi
add edi, dword [esp + 0x148]
mov dword [esp + 0x10], ebx
xor ecx, ecx
mov edx, 0x20
movzx eax, byte [0x77618d]
call fcn.00490be0
test eax, eax
je 0x492bd9
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 0x4921c9
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
sub ebx, edi
add edi, dword [esp + 0xa0]
cmp esi, dword [esp + 0x34]
je 0x492238
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 0x492260
test ecx, ecx
je 0x4922b9
dec ecx
mov dword [esp + 0xc0], ecx
cmp byte [esp + 0xb9], 0
jne 0x4922b9
mov edi, dword [esp + 0xa0]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x70]
mov dword [esp], eax
call fcn.00492e30
test byte [esp + 0x40], 1
je 0x492280
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 0x4921bd
lea ecx, [esp + 0x34]
mov edx, esi
push 8
push 4
push 1
call fcn.004e6420
add esp, 0xc
mov eax, dword [esp + 0x38]
jmp 0x4921bd
mov dword [esp + 0xc0], 0
cmp byte [esp + 0xb9], 0
je 0x49228d
jmp 0x4922b9
cmp byte [esp + 0xb9], 0
mov eax, dword [esp]
jne 0x4922b9
mov byte [esp + 0xb9], 1
cmp byte [esp + 0xb8], 1
je 0x4921a0
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
cmp ebx, edi
jne 0x4921ae
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
cmp esi, 2
mov dword [esp + 0x30], 0x50
mov dword [esp], edx
jne 0x492313
mov edx, dword [edi + 4]
mov ebx, dword [esp + 0x10]
add edx, 0xfffffffc
cmp edx, 3
ja 0x4926c1
lea eax, [edi + 8]
mov ecx, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
add eax, dword [edx*4 + 0x492d84]
jmp eax
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], 0
mov eax, edi
lea ecx, [edi + esi*8]
cmp eax, ecx
je 0x492728
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.00493260
test eax, eax
je 0x4925fe
mov esi, eax
movzx eax, byte [0x77618d]
mov edi, edx
xor ecx, ecx
mov edx, 0x20
call fcn.00490be0
test eax, eax
je 0x492bd9
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 0x492486
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
sub esi, ebx
add ebx, dword [esp + 0x74]
cmp edi, dword [esp + 0x40]
je 0x4924bd
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 0x4924e0
test eax, eax
je 0x492521
dec eax
mov esi, ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x98], eax
call fcn.00493260
test eax, eax
je 0x492521
mov ecx, esi
mov ebx, eax
mov esi, edx
cmp edi, dword [esp + 0x40]
jne 0x49247a
lea ecx, [esp + 0x40]
mov edx, edi
push 8
push 4
push 1
call fcn.004e6420
add esp, 0xc
mov ecx, dword [esp + 0x44]
jmp 0x49247a
mov dword [esp + 0x98], 0
cmp byte [esp + 0x95], 0
jne 0x492521
mov byte [esp + 0x95], 1
cmp byte [esp + 0x94], 1
je 0x492460
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
cmp esi, ebx
jne 0x49246e
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 0x49261b
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.00493580
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
cmp eax, 2
mov dword [esp + 0x14], eax
jne 0x4926e9
mov edi, dword [ebx + 4]
test edi, edi
js 0x492bd9
mov ecx, dword [ebx]
mov dword [esp + 0x2c], edx
je 0x492758
movzx eax, byte [0x77618d]
mov dword [esp + 8], ecx
xor ecx, ecx
mov edx, edi
call fcn.00490be0
mov ecx, dword [esp + 8]
test eax, eax
jne 0x49275d
jmp 0x492bd9
mov edi, dword [esp + 4]
xor esi, esi
mov dword [esp + 0xc], 4
mov edx, 0x80000000
mov ecx, 0x80000000
jmp 0x4928e6
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 0x492807
jmp 0x4928e2
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 0x49292f
mov ecx, 2
mov edi, 2
jmp 0x4927c6
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 0x492936
jmp 0x492945
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 0x492bd9
mov ecx, dword [ebx + 8]
je 0x4927a1
movzx eax, byte [0x77618d]
mov dword [esp + 8], ecx
xor ecx, ecx
mov edx, edi
call fcn.00490be0
mov ecx, dword [esp + 8]
test eax, eax
jne 0x4927a6
jmp 0x492bd9
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 0x4927dd
push ebx
push 0
push dword [0x776180]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, ebx
cmp dword [esp + 0x14], 2
jne 0x492887
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 0x4928e2
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.00493790
test byte [esp + 0x70], 1
je 0x4928cf
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 0x4929d8
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 0x49291d
jmp 0x49292f
cmp byte [esp + 0x65], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
je 0x4929aa
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 0x492968
test ecx, 0x7fffffff
jne 0x49298e
test esi, esi
je 0x49292f
push dword [esp + 0xc]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp]
test edx, edx
je 0x492945
push edi
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0xcc]
cmp dword [eax], 0
je 0x492960
push ebx
push 0
push dword [0x776180]
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 [0x776180]
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 0x492919
push dword [esp + 0x6c]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x49291d
jmp 0x49292f
mov byte [esp + 0x65], 1
cmp byte [esp + 0x64], 1
jne 0x4929c0
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
jmp 0x4929d0
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x4928e2
sub eax, esi
add esi, dword [esp + 0x44]
mov ebx, eax
movzx eax, byte [0x77618d]
xor ecx, ecx
mov edx, 0x20
call fcn.00490be0
test eax, eax
je 0x492bd9
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 0x492a74
mov dword [esp + 0x1c], esi
xor edi, edi
mov edx, 4
jmp 0x492bb4
mov ebx, 1
jmp 0x492ac8
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 0x492b39
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 0x492b5c
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x70]
mov dword [esp + 0x14], eax
call fcn.00493790
test byte [esp + 0x34], 1
jne 0x492a80
cmp byte [esp + 0x95], 0
mov eax, dword [esp + 0x14]
jne 0x492b5c
mov byte [esp + 0x95], 1
cmp byte [esp + 0x94], 1
jne 0x492b14
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
jmp 0x492b26
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
cmp edi, esi
je 0x492b5c
sub edi, esi
add esi, dword [esp + 0x74]
cmp ebx, dword [esp + 0xd0]
jne 0x492aab
lea ecx, [esp + 0xd0]
mov edx, ebx
push 8
push 4
push 1
call fcn.004e6420
add esp, 0xc
mov eax, dword [esp + 0xd4]
jmp 0x492aab
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
test ebx, ebx
je 0x492b80
mov ecx, dword [eax]
cmp ebx, 1
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
jne 0x492bac
xor edi, edi
jmp 0x492bb2
mov esi, dword [esp + 0x18]
test edx, edx
je 0x492b97
push eax
push 0
push dword [0x776180]
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 0x4928e6
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov ebx, ecx
test ebx, ebx
js 0x492bd9
mov dword [esp + 0xe4], edx
mov dword [esp + 0x14], eax
je 0x492bdb
movzx eax, byte [0x77618d]
xor ecx, ecx
mov edx, ebx
call fcn.00490be0
test eax, eax
jne 0x492be0
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 0x492d25
mov edx, dword [esp]
test esi, esi
je 0x492c72
cmp esi, 1
jne 0x492c2d
movzx eax, byte [edi]
cmp eax, 0x2b
je 0x492c72
mov esi, 1
cmp eax, 0x2d
je 0x492c72
jmp 0x492d48
cmp byte [edi], 0x2b
jne 0x492d3f
inc edi
cmp esi, 0xa
lea esi, [esi - 1]
jb 0x492d48
xor ebx, ebx
mov ecx, 0xa
sub esi, 1
jb 0x492d63
mov eax, ebx
mul ecx
jo 0x492d25
mov ebx, eax
movzx eax, byte [edi]
mov edx, dword [esp]
add eax, 0xffffffd0
cmp eax, 9
ja 0x492c72
inc edi
add ebx, eax
jae 0x492c4a
cmp dword [esp + 0xe4], 0
mov esi, dword [esp + 4]
je 0x492c95
push dword [esp + 0x14]
push 0
push dword [0x776180]
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 0x492d13
push dword [esp + 0xc]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp]
mov ebx, dword [esp + 0x10]
test edx, edx
je 0x492945
push esi
jmp 0x492937
mov edx, dword [esp]
cmp dword [esp + 0xe4], 0
mov esi, dword [esp + 4]
jne 0x492c80
jmp 0x492c95
cmp esi, 9
jae 0x492c43
xor ebx, ebx
movzx eax, byte [edi]
add eax, 0xffffffd0
cmp eax, 9
ja 0x492c72
lea ecx, [ebx + ebx*4]
inc edi
dec esi
lea ebx, [eax + ecx*2]
jne 0x492d4a
mov dword [esp + 0x1c], 0
cmp dword [esp + 0xe4], 0
mov esi, dword [esp + 4]
jne 0x492c80
jmp 0x492c95