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

Disassembly:
push esi
push ebp
push ebx
push ecx
mov eax, 0x7c
call fcn.006021b0
mov ecx, dword [esp + 0x7c]
mov ebp, ecx
mov esi, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov ebx, 1
mov al, byte [ebp + 0x10]
and al, 0xfd
mov byte [ebp + 0x10], al
cmp edx, dword [esi + 0x14]
jae 0x51ff5d
mov eax, 1
add esp, 0x80
pop ebx
pop ebp
pop esi
ret 8
lea eax, [esp]
push 1
push edx
push eax
mov ecx, esi
call fcn.005261d4
cmp eax, 1
je 0x51ff7c
mov dword [ebp + 0xc], esi
movsx eax, word [esp + 8]
test eax, eax
jl 0x51ff8d
mov eax, 1
add esp, 0x80
pop ebx
pop ebp
pop esi
ret 8
neg eax
movsx ecx, ax
mov word [ebp + 0x17], cx
mov eax, dword [esp + 4]
mov dword [ebp + 4], eax
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
call fcn.004dbd80
mov dword [ebp + 0x1b], eax
movsx ecx, word [ebp + 0x17]
add ecx, ecx
add ecx, ecx
call fcn.004dbf60
mov dword [ebp + 0x27], eax
movsx ecx, word [ebp + 0x17]
add ecx, ecx
add ecx, ecx
call fcn.004dbf60
mov dword [ebp + 0x23], eax
mov esi, dword [ebp + 0x1b]
lea edx, [esi + 0x80]
mov dword [ebp + 0x1f], edx
lea eax, [esp]
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x10], edx
mov edx, dword [eax + 0x14]
mov dword [esi + 0x14], edx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x18], edx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0x1c], edx
mov edx, dword [eax + 0x20]
mov dword [esi + 0x20], edx
mov edx, dword [eax + 0x24]
mov dword [esi + 0x24], edx
mov edx, dword [eax + 0x28]
mov dword [esi + 0x28], edx
mov edx, dword [eax + 0x2c]
mov dword [esi + 0x2c], edx
mov edx, dword [eax + 0x30]
mov dword [esi + 0x30], edx
mov edx, dword [eax + 0x34]
mov dword [esi + 0x34], edx
mov edx, dword [eax + 0x38]
mov dword [esi + 0x38], edx
mov edx, dword [eax + 0x3c]
mov dword [esi + 0x3c], edx
mov edx, dword [eax + 0x40]
mov dword [esi + 0x40], edx
mov edx, dword [eax + 0x44]
mov dword [esi + 0x44], edx
mov edx, dword [eax + 0x48]
mov dword [esi + 0x48], edx
mov edx, dword [eax + 0x4c]
mov dword [esi + 0x4c], edx
mov edx, dword [eax + 0x50]
mov dword [esi + 0x50], edx
mov edx, dword [eax + 0x54]
mov dword [esi + 0x54], edx
mov edx, dword [eax + 0x58]
mov dword [esi + 0x58], edx
mov edx, dword [eax + 0x5c]
mov dword [esi + 0x5c], edx
mov edx, dword [eax + 0x60]
mov dword [esi + 0x60], edx
mov edx, dword [eax + 0x64]
mov dword [esi + 0x64], edx
mov edx, dword [eax + 0x68]
mov dword [esi + 0x68], edx
mov edx, dword [eax + 0x6c]
mov dword [esi + 0x6c], edx
mov edx, dword [eax + 0x70]
mov dword [esi + 0x70], edx
mov edx, dword [eax + 0x74]
mov dword [esi + 0x74], edx
mov edx, dword [eax + 0x78]
mov dword [esi + 0x78], edx
mov eax, dword [eax + 0x7c]
mov dword [esi + 0x7c], eax
mov edx, dword [ebp + 0x27]
mov eax, dword [esi + 0xc]
mov dword [edx], eax
mov edx, dword [ebp + 0x23]
mov eax, dword [esi]
mov dword [edx], eax
cmp word [ebp + 0x17], 1
jle 0x5201ae
add esi, 0x80
mov eax, dword [ebp + 0x27]
push 1
push dword [eax + ebx*4 - 4]
push esi
mov ecx, dword [ebp + 0xc]
call fcn.005261d4
cmp eax, 1
je 0x5201bc
mov eax, dword [ebp + 0x27]
mov edx, dword [esi + 0xc]
mov dword [eax + ebx*4], edx
mov eax, dword [ebp + 0x23]
mov edx, dword [esi]
mov dword [eax + ebx*4], edx
mov edx, dword [ebp + 0x1f]
lea eax, [esi + 0x10]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov ecx, dword [eax + 0x44]
mov dword [edx + 0x44], ecx
mov ecx, dword [eax + 0x48]
mov dword [edx + 0x48], ecx
mov ecx, dword [eax + 0x4c]
mov dword [edx + 0x4c], ecx
mov ecx, dword [eax + 0x50]
mov dword [edx + 0x50], ecx
mov ecx, dword [eax + 0x54]
mov dword [edx + 0x54], ecx
mov ecx, dword [eax + 0x58]
mov dword [edx + 0x58], ecx
mov ecx, dword [eax + 0x5c]
mov dword [edx + 0x5c], ecx
mov ecx, dword [eax + 0x60]
mov dword [edx + 0x60], ecx
mov ecx, dword [eax + 0x64]
mov dword [edx + 0x64], ecx
mov ecx, dword [eax + 0x68]
mov dword [edx + 0x68], ecx
mov ecx, dword [eax + 0x6c]
mov dword [edx + 0x6c], ecx
mov edx, dword [ebp + 0x1f]
add edx, 0x70
mov dword [ebp + 0x1f], edx
inc ebx
movsx eax, word [ebp + 0x17]
cmp ebx, eax
jl 0x5200ba
xor eax, eax
add esp, 0x80
pop ebx
pop ebp
pop esi
ret 8
mov eax, 1
add esp, 0x80
pop ebx
pop ebp
pop esi
ret 8