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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x1ac
mov eax, dword [esp + 0x1c8]
mov dword [esp + 0x3c], eax
mov esi, dword [esp + 0x1c4]
mov edx, dword [esp + 0x1c0]
mov dword [esp + 0x40], edx
mov ecx, dword [esp + 0x1bc]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], 1
mov dword [esp + 0x8c], 1
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], 1
mov dword [esp + 0x98], 1
mov eax, edx
shr eax, 1
mov dword [esp + 0x9c], eax
mov dword [esp + 0x44], ecx
imul ebx, eax, 0x18
mov edi, ecx
add edi, ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
mov esi, eax
sub esi, 1
mov dword [esp + 0xa0], esi
imul edi, esi, 0x18
mov esi, ecx
add esi, edi
mov dword [esp + 0x50], esi
sub edx, 1
mov dword [esp + 0xa4], edx
imul esi, edx, 0x18
add ecx, esi
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xa8], ecx
imul edx, edx, 0x18
add ecx, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0xb8], eax
lea eax, [esp + 0x5c]
add eax, 4
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x60]
jb 0x51e1dd
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc0], ecx
add ecx, 0x18
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xcc], ecx
add ecx, 0x18
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x38], ecx
mov dword [esp + 0xd4], ecx
and eax, 1
cmp eax, 0
je 0x51e5d5
jmp 0x51e5d7
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xf4], eax
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.0040d910
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x170], esi
mov dword [esp + 0x174], ecx
mov dword [esp + 0x178], eax
mov dword [esp + 0x180], edx
mov dword [esp + 0x184], 1
mov dword [esp + 0x188], 1
mov ecx, dword [esp + 0x174]
mov eax, dword [esp + 0x170]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049eea0
mov byte [esp + 0x32], al
xor al, 0xff
mov byte [esp + 0x33], al
mov cl, al
and cl, 1
mov byte [esp + 0x18f], cl
test al, 1
jne 0x51e286
mov eax, dword [esp + 0x174]
mov dword [esp + 0x17c], eax
jmp 0x51e294
mov eax, dword [esp + 0x170]
mov dword [esp + 0x17c], eax
mov ecx, dword [esp + 0x17c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x190], ecx
mov eax, dword [esp + 0x178]
mov dword [esp + 0x28], eax
mov dword [esp + 0x194], eax
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 ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
call sub.VCRUNTIME140.dll_memcpy
mov ch, byte [esp + 0x32]
mov cl, byte [esp + 0x33]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x174]
mov dword [esp + 0x198], eax
and ch, 1
movzx esi, ch
mov dword [esp + 0x19c], esi
imul esi, esi, 0x18
add eax, esi
mov dword [esp + 0x174], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x1a0], eax
and cl, 1
movzx ecx, cl
mov dword [esp + 0x1a4], ecx
imul ecx, ecx, 0x18
add eax, ecx
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0x178]
mov dword [esp + 0x1a8], eax
add eax, 0x18
mov dword [esp + 0x178], eax
mov esi, dword [esp + 0x170]
mov ecx, dword [esp + 0x174]
mov eax, dword [esp + 0x178]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov esi, dword [esp + 0x64]
mov dword [esp + 0xf8], esi
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xfc], ecx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x100], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x110], esi
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], eax
mov dword [esp + 0x124], edx
mov dword [esp + 0x128], 1
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 1
mov ecx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049eea0
mov byte [esp + 0x30], al
xor al, 0xff
mov byte [esp + 0x31], al
mov cl, al
and cl, 1
mov byte [esp + 0x13b], cl
test al, 1
jne 0x51e454
mov eax, dword [esp + 0x110]
mov dword [esp + 0x11c], eax
jmp 0x51e462
mov eax, dword [esp + 0x114]
mov dword [esp + 0x11c], eax
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x13c], ecx
mov eax, dword [esp + 0x118]
mov dword [esp + 0x20], eax
mov dword [esp + 0x140], eax
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 ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
call sub.VCRUNTIME140.dll_memcpy
mov dl, byte [esp + 0x31]
mov cl, byte [esp + 0x30]
mov eax, dword [esp + 0x114]
mov dword [esp + 0x144], eax
and dl, 1
movzx esi, dl
mov dword [esp + 0x148], esi
mov dword [esp + 0x14c], esi
xor edx, edx
sub edx, esi
mov dword [esp + 0x150], edx
imul edx, edx, 0x18
add eax, edx
mov dword [esp + 0x154], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x158], eax
and cl, 1
movzx edx, cl
mov dword [esp + 0x15c], edx
mov dword [esp + 0x160], edx
xor ecx, ecx
sub ecx, edx
mov dword [esp + 0x164], ecx
imul ecx, ecx, 0x18
add eax, ecx
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 0x16c], eax
add eax, 0xffffffe8
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x120]
mov dword [esp + 0x118], eax
mov edx, dword [esp + 0x110]
mov ecx, dword [esp + 0x114]
mov eax, dword [esp + 0x118]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x70]
mov dword [esp + 0x104], edx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x108], ecx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10c], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
jmp 0x51e14c
jmp 0x51e5f8
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x44], eax
setb al
mov byte [esp + 0x1f], al
mov cl, al
and cl, 1
mov byte [esp + 0xdb], cl
test al, 1
jne 0x51e615
jmp 0x51e60b
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x44], eax
jne 0x51e6df
jmp 0x51e6d3
mov eax, dword [esp + 0x48]
mov dword [esp + 0x7c], eax
jmp 0x51e61d
mov eax, dword [esp + 0x44]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov dword [esp + 0xe0], 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
mov cl, byte [esp + 0x1f]
mov eax, dword [esp + 0x44]
mov dword [esp + 0xe4], eax
mov dl, cl
and dl, 1
movzx edx, dl
mov dword [esp + 0xe8], edx
imul edx, edx, 0x18
add eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xec], eax
xor cl, 0xff
and cl, 1
movzx ecx, cl
mov dword [esp + 0xf0], ecx
imul ecx, ecx, 0x18
add eax, ecx
mov dword [esp + 0x48], eax
jmp 0x51e5f8
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x48], eax
jne 0x51e6eb
jmp 0x51e6e1
jmp 0x51e6ed
add esp, 0x1ac
pop esi
pop edi
pop ebx
ret
jmp 0x51e6ed
call fcn.005f6dc0
int3