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

Disassembly:
push ebx
push edi
push esi
sub esp, 0xf4
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x30], eax
mov dl, byte [esp + 0x118]
mov byte [esp + 0x37], dl
mov eax, dword [esp + 0x114]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x110]
mov esi, dword [esp + 0x10c]
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x40], ecx
mov edi, dword [esp + 0x104]
mov dword [esp + 0x44], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], eax
and dl, 1
mov byte [esp + 0x87], dl
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x94], 3
mov dword [esp + 0x98], 1
mov dword [esp + 0x9c], 1
cmp eax, ecx
jb 0x4984df
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
setae al
and al, 1
mov byte [esp + 0x4b], al
jmp 0x4984e4
mov byte [esp + 0x4b], 1
mov al, byte [esp + 0x4b]
and al, 1
mov byte [esp + 0xa3], al
test byte [esp + 0xa3], 1
jne 0x498554
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], esi
imul ebx, eax, 0x18
mov edi, edx
add edi, ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0xac], edi
imul edi, ecx, 0x18
mov ecx, esi
add ecx, edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
jmp 0x498556
ud2
jmp 0x498558
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xb0], ecx
imul ecx, ecx, 0x18
add eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x50], eax
jb 0x49858d
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x60], eax
je 0x4985f0
jmp 0x4985c3
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049ef60
mov cl, al
mov eax, esp
lea edx, [esp + 0x4c]
mov dword [eax], edx
movzx ecx, cl
and ecx, 1
mov dword [eax + 4], ecx
call fcn.0049bd90
jmp 0x498577
mov cl, byte [esp + 0x37]
mov eax, esp
lea edx, [esp + 0x4c]
mov dword [eax], edx
movzx ecx, cl
and ecx, 1
mov dword [eax + 4], ecx
call fcn.0049bd90
mov ecx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
jmp 0x498556
call fcn.005189a0
xor al, 0xff
test al, 1
jne 0x498622
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov dword [esp + 0xc4], eax
jmp 0x49867b
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 1
call fcn.00480ae0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
call sub.VCRUNTIME140.dll_memcpy
jmp 0x4985fb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], eax
call fcn.00480ae0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
imul eax, eax, 0x18
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x54]
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], eax
lea eax, [esp + 0x64]
mov dword [esp + 0xd0], eax
lea eax, [esp + 0x64]
mov dword [esp + 0xd4], eax
lea eax, [esp + 0x64]
add eax, 4
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x68]
jb 0x49872f
mov ecx, dword [0x600a90]
mov eax, dword [0x600a94]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
jmp 0x498764
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xdc], eax
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.0040d910
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], 1
cmp dword [esp + 0x6c], 0
jne 0x498779
mov eax, dword [esp + 0x54]
add esp, 0xf4
pop esi
pop edi
pop ebx
ret
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xe0], ecx
sub esi, 1
sub esi, ecx
mov dword [esp + 0xe4], esi
imul esi, esi, 0x18
add edx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0xe8], edx
add ecx, dword [esp + 0x54]
mov dword [esp + 0xec], ecx
imul ecx, ecx, 0x18
add eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 1
call fcn.00480ae0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
call sub.VCRUNTIME140.dll_memcpy
jmp 0x4986ec