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

Disassembly:
push ebx
push edi
push esi
sub esp, 0xf8
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x108]
mov dword [esp + 0x30], esi
mov dword [esp + 0x88], 1
mov dword [esp + 0x8c], 3
mov dword [esp + 0x90], 2
mov dword [esp + 0x94], 1
mov dword [esp + 0x98], 1
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa0], 2
mov dword [esp + 0xa4], 1
mov dword [esp + 0xa8], 3
mov dword [esp + 0xac], 1
mov eax, esi
add eax, 0x18
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.0040db80
mov edx, dword [esp + 0x40]
mov byte [esp + 0x37], al
and al, 1
mov byte [esp + 0xb2], al
mov ecx, esi
add ecx, 0x48
mov eax, esi
add eax, 0x30
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0040db80
mov cl, byte [esp + 0x37]
mov edx, dword [esp + 0x40]
mov bl, al
mov al, bl
and al, 1
mov byte [esp + 0xb3], al
mov al, cl
and al, 1
movzx eax, al
mov dword [esp + 0xb4], eax
imul edi, eax, 0x18
mov eax, esi
add eax, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0xb8], eax
xor cl, 0xff
and cl, 1
movzx ecx, cl
mov dword [esp + 0xbc], ecx
imul edi, ecx, 0x18
mov ecx, esi
add ecx, edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0xc0], ecx
mov cl, bl
and cl, 1
movzx ecx, cl
add ecx, 2
mov dword [esp + 0xc4], ecx
imul edi, ecx, 0x18
mov ecx, esi
add ecx, edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0xc8], ecx
xor bl, 0xff
and bl, 1
movzx edi, bl
add edi, 2
mov dword [esp + 0xcc], edi
imul edi, edi, 0x18
add esi, edi
mov dword [esp + 0x44], esi
mov dword [esp + 0xd0], esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0040db80
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov bl, al
mov eax, dword [esp + 0x48]
mov byte [esp + 0x4e], bl
and bl, 1
mov byte [esp + 0xd5], bl
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0040db80
mov cl, al
mov al, byte [esp + 0x4e]
mov byte [esp + 0x4f], cl
and cl, 1
mov byte [esp + 0xd6], cl
test al, 1
jne 0x51b104
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
jmp 0x51b10c
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
mov al, byte [esp + 0x4f]
test al, 1
jne 0x51b120
jmp 0x51b116
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], eax
jmp 0x51b128
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov al, byte [esp + 0x4f]
test al, 1
jne 0x51b13c
jmp 0x51b132
mov eax, dword [esp + 0x48]
mov dword [esp + 0x5c], eax
jmp 0x51b144
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
mov al, byte [esp + 0x4e]
test al, 1
jne 0x51b158
jmp 0x51b14e
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], eax
jmp 0x51b160
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov al, byte [esp + 0x4e]
test al, 1
jne 0x51b174
jmp 0x51b16a
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x64], eax
jmp 0x51b17c
mov eax, dword [esp + 0x48]
mov dword [esp + 0x64], eax
mov al, byte [esp + 0x4f]
test al, 1
jne 0x51b190
jmp 0x51b186
mov eax, dword [esp + 0x64]
mov dword [esp + 0x60], eax
jmp 0x51b198
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0040db80
mov byte [esp + 0x23], al
mov cl, al
and cl, 1
mov byte [esp + 0xd7], cl
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x24], ecx
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x28], ecx
mov dword [esp + 0xdc], ecx
test al, 1
jne 0x51b1f0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], eax
jmp 0x51b1f8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x68], eax
mov al, byte [esp + 0x23]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x18], ecx
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xe4], ecx
test al, 1
jne 0x51b228
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x6c], eax
jmp 0x51b230
mov eax, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 1
call fcn.00480ae0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x70], ecx
mov dword [esp + 0xec], eax
add eax, 0x18
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 1
call fcn.00480ae0
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x78], ecx
mov dword [esp + 0xf0], eax
add eax, 0x30
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 1
call fcn.00480ae0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x80], ecx
mov dword [esp + 0xf4], eax
add eax, 0x48
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 1
call fcn.00480ae0
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xf8
pop esi
pop edi
pop ebx
ret