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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x108
mov eax, dword [esp + 0x130]
mov dword [esp + 0x34], eax
mov dl, byte [esp + 0x12c]
mov byte [esp + 0x3b], dl
mov eax, dword [esp + 0x128]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x124]
mov esi, dword [esp + 0x120]
mov dword [esp + 0x40], esi
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x44], ecx
mov edi, dword [esp + 0x118]
mov dword [esp + 0x48], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], eax
and dl, 1
mov byte [esp + 0x8b], dl
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x98], 3
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa0], 1
cmp eax, ecx
jb 0x4994e2
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
setae al
and al, 1
mov byte [esp + 0x4f], al
jmp 0x4994e7
mov byte [esp + 0x4f], 1
mov al, byte [esp + 0x4f]
and al, 1
mov byte [esp + 0xa7], al
test byte [esp + 0xa7], 1
jne 0x499559
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], esi
mov ebx, eax
shl ebx, 4
mov ecx, edx
add ecx, ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0xb0], ecx
shl edi, 4
mov ecx, esi
add ecx, edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], eax
jmp 0x49955b
ud2
jmp 0x49955d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xb4], ecx
xor edx, edx
sub ecx, 3
cmovb ecx, edx
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0xbc], ecx
shl ecx, 4
add eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x54], eax
jb 0x4995a8
jmp 0x49967d
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049e250
mov cl, al
mov eax, esp
lea edx, [esp + 0x50]
mov dword [eax], edx
movzx ecx, cl
and ecx, 1
mov dword [eax + 4], ecx
call fcn.0049bc80
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049e250
mov cl, al
mov eax, esp
lea edx, [esp + 0x50]
mov dword [eax], edx
movzx ecx, cl
and ecx, 1
mov dword [eax + 4], ecx
call fcn.0049bc80
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049e250
mov cl, al
mov eax, esp
lea edx, [esp + 0x50]
mov dword [eax], edx
movzx ecx, cl
and ecx, 1
mov dword [eax + 4], ecx
call fcn.0049bc80
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049e250
mov cl, al
mov eax, esp
lea edx, [esp + 0x50]
mov dword [eax], edx
movzx ecx, cl
and ecx, 1
mov dword [eax + 4], ecx
call fcn.0049bc80
jmp 0x499599
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xc4], ecx
shl ecx, 4
add eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x54], eax
jb 0x4996b2
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x64], eax
je 0x499715
jmp 0x4996e8
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049e250
mov cl, al
mov eax, esp
lea edx, [esp + 0x50]
mov dword [eax], edx
movzx ecx, cl
and ecx, 1
mov dword [eax + 4], ecx
call fcn.0049bc80
jmp 0x49969c
mov cl, byte [esp + 0x3b]
mov eax, esp
lea edx, [esp + 0x50]
mov dword [eax], edx
movzx ecx, cl
and ecx, 1
mov dword [eax + 4], ecx
call fcn.0049bc80
mov ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
jmp 0x49955b
call fcn.005189d0
xor al, 0xff
test al, 1
jne 0x499747
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
mov dword [esp + 0xd8], eax
jmp 0x4997a5
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], eax
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 1
call fcn.00480ae0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
jmp 0x499720
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], eax
call fcn.00480ae0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
shl eax, 4
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x58]
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
mov dword [esp + 0xe4], eax
lea eax, [esp + 0x68]
mov dword [esp + 0xe8], eax
lea eax, [esp + 0x68]
add eax, 4
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x6c]
jb 0x499859
mov ecx, dword [0x600a90]
mov eax, dword [0x600a94]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
jmp 0x49988e
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xf0], eax
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.0040d910
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], 1
cmp dword [esp + 0x70], 0
jne 0x4998a3
mov eax, dword [esp + 0x58]
add esp, 0x108
pop esi
pop edi
pop ebx
ret
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xf4], ecx
sub esi, 1
sub esi, ecx
mov dword [esp + 0xf8], esi
shl esi, 4
add edx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0xfc], edx
add ecx, dword [esp + 0x58]
mov dword [esp + 0x100], ecx
shl ecx, 4
add eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 1
call fcn.00480ae0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
jmp 0x499816