Function at 0x5200c0
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
mov ecx, dword [0x55fe58]
push ebx
mov ebx, dword [esp + 0x64]
lea eax, [ebx + ebx]
push ebp
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
cmp ecx, eax
push esi
push edi
jne 0x5200ec
movzx ecx, byte [0x563bfc]
mov dword [0x55fe58], ecx
cmp dword [0x55fe5c], eax
jne 0x520108
lea edx, [esp + 0x40]
push edx
call dword [0x53d134]
mov eax, dword [esp + 0x54]
mov dword [0x55fe5c], eax
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
mov esi, dword [eax]
mov edi, dword [ebp]
cmp esi, edi
je 0x520130
mov ecx, ebx
imul ecx, dword [esp + 0x7c]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [eax + 4]
mov edi, dword [ebp + 4]
cmp esi, edi
je 0x52015e
mov eax, dword [esp + 0x7c]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
imul ecx, dword [esp + 0x74]
shl ecx, 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x68]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [eax + 8]
mov edi, dword [ebp + 8]
cmp esi, edi
je 0x520188
mov eax, dword [esp + 0x7c]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
imul ecx, dword [esp + 0x74]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x78]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
mov esi, eax
mov eax, dword [esp + 0x7c]
cdq
and edx, 0xf
add eax, edx
mov edi, eax
mov eax, dword [0x55fe5c]
sar edi, 4
sar esi, 4
cmp eax, 1
mov dword [esp + 0x1c], edi
jle 0x52033a
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x7c]
mov dword [0x626d7c], eax
mov eax, dword [esp + 0x74]
mov dword [0x626d88], eax
mov dword [0x626d90], edx
mov edx, dword [esp + 0x80]
lea eax, [edi - 1]
mov dword [esp + 0x6c], eax
mov dword [0x626d94], edx
cdq
sub eax, edx
mov dword [0x626d8c], ecx
mov ecx, dword [esp + 0x84]
sar eax, 1
mov dword [0x626d80], ebp
mov dword [0x626d84], ebx
mov dword [0x626d98], ecx
mov dword [0x626d9c], esi
mov dword [0x626da0], edi
mov dword [0x626da4], 0
mov dword [esp + 0x20], eax
mov dword [0x626da8], eax
mov dword [0x626dac], 0x51ff70
call fcn.0051ff10
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x6c]
jge 0x52031d
mov edx, ebx
shl edx, 5
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x74]
shl edx, 4
mov dword [esp + 0x28], edx
mov edx, eax
shl edx, 5
lea edi, [edx + 0xe]
imul edi, ebx
mov ecx, eax
mov dword [esp + 0x18], edi
imul ecx, esi
add edx, 0x1e
imul edx, ebx
mov edi, eax
mov eax, dword [esp + 0x6c]
shl edi, 4
add edi, 0xe
imul edi, dword [esp + 0x74]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
jmp 0x5202a3
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
push esi
push ecx
mov ecx, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x88]
push ecx
push dword [esp + 0x88]
mov ecx, dword [ebp + 8]
push ebx
add ecx, edi
push ecx
mov ecx, dword [ebp + 4]
add ecx, edi
add edx, eax
push ecx
push edx
mov edx, dword [esp + 0x40]
add edx, eax
push edx
call fcn.0051f4c0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
add ecx, esi
add edi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x44]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x4c]
add esp, 0x2c
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jne 0x52029b
mov edi, dword [esp + 0x1c]
mov eax, dword [0x626d74]
push 0xffffffffffffffff
push eax
call dword [0x53d1f4]
mov dword [0x626dac], 0
jmp 0x520405
lea eax, [edi - 1]
test eax, eax
mov dword [esp + 0x6c], eax
jle 0x520409
mov edi, dword [esp + 0x74]
mov ecx, ebx
shl ecx, 5
mov dword [esp + 0x28], ecx
mov ecx, edi
shl ecx, 4
mov dword [esp + 0x2c], ecx
mov ecx, ebx
imul ecx, ecx, 0xe
mov dword [esp + 0x10], ecx
mov ecx, ebx
imul ecx, ecx, 0x1e
imul edi, edi, 0xe
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
jmp 0x520386
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp]
push esi
push edx
mov edx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x88]
push edx
mov edx, dword [ebp + 8]
push ebx
add edx, edi
push edx
mov edx, dword [ebp + 4]
add edx, edi
add ecx, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
add ecx, eax
push ecx
call fcn.0051f4c0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
add ecx, esi
add edi, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x3c]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x4c]
add esp, 0x2c
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
jne 0x520382
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
mov edx, dword [ebp]
mov ecx, eax
imul eax, esi
shl ecx, 4
add ecx, 7
imul ecx, ebx
test esi, esi
lea ecx, [edx + ecx*2]
mov dword [esp + 0x2c], ecx
jle 0x5204e7
mov ebx, dword [esp + 0x24]
mov edx, ecx
sub edx, ebx
lea edi, [ebx + ecx]
lea ebx, [ecx + ebx*2]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x80]
lea eax, [ebx + eax*4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x18], esi
jmp 0x520463
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
mov eax, dword [eax]
mov eax, dword [eax*4 + 0x54b4c8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
sub eax, edi
sub ecx, edi
sub edx, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], 0x10
jmp 0x5204a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
add eax, edi
push eax
push edi
add edx, edi
lea ebx, [ecx + edi]
mov ecx, dword [esp + 0x44]
push edx
push ecx
call fcn.0051f0c0
mov eax, dword [esp + 0x30]
add esp, 0x10
add edi, 2
dec eax
mov dword [esp + 0x20], eax
jne 0x520494
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
add ecx, 4
dec eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x18], eax
jne 0x520457
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x1c]
cmp dword [0x55fe5c], 1
jle 0x52069d
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x78]
mov dword [0x626d90], eax
mov eax, dword [esp + 0x84]
mov dword [0x626d98], eax
mov dword [0x626d7c], edx
mov edx, dword [esp + 0x74]
lea eax, [esi - 1]
mov dword [0x626d88], edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x68], eax
mov dword [0x626da8], eax
mov eax, dword [0x55fe60]
test eax, eax
mov dword [0x626d8c], ecx
mov ecx, dword [esp + 0x80]
mov dword [0x626d80], ebp
mov dword [0x626d84], ebx
mov dword [0x626d94], ecx
mov dword [0x626d9c], esi
mov dword [0x626da0], edi
mov dword [0x626da4], 0
mov dword [0x626dac], 0x520040
je 0x5205bf
push 0
push 0
push 0
push 0
call dword [0x53d234]
push 0
push 0
push 0
push 0
mov dword [0x626d78], eax
call dword [0x53d234]
push 0
push 0
push 0
push 0x51fed0
push 0
push 0
mov dword [0x626d74], eax
call dword [0x53d160]
mov dword [0x55fe60], 0
mov edx, dword [0x626d78]
push edx
call dword [0x53d238]
mov ecx, dword [esp + 0x68]
lea eax, [esi - 1]
cmp ecx, eax
mov dword [esp + 0x68], ecx
jge 0x520680
mov eax, ecx
shl eax, 5
shl ecx, 4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
jmp 0x520600
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
lea esp, [esp]
mov edx, dword [ebp]
push edi
add eax, edx
mov edx, dword [esp + 0x6c]
push esi
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [ebp + 8]
lea edx, [edx + ecx + 0xe]
push ebx
push edx
mov edx, dword [ebp + 4]
lea ecx, [ecx + edx + 0xe]
push ecx
lea edx, [eax + 0x1e]
push edx
add eax, 0xe
push eax
call fcn.0051f670
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0xa0]
add ecx, 0x20
add esp, 0x30
inc eax
mov dword [esp + 0x6c], ecx
add edx, 0x10
lea ecx, [esi - 1]
cmp eax, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edx
jl 0x5205f1
mov eax, dword [0x626d74]
push 0xffffffffffffffff
push eax
call dword [0x53d1f4]
mov dword [0x626dac], 0
jmp 0x520744
xor ecx, ecx
lea eax, [esi - 1]
cmp eax, ecx
mov dword [esp + 0x68], ecx
jle 0x520744
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
jmp 0x5206c0
mov ecx, dword [esp + 0x70]
lea esp, [esp]
mov edx, dword [ebp]
mov eax, dword [esp + 0x6c]
push edi
add eax, edx
mov edx, dword [esp + 0x6c]
push esi
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [ebp + 8]
lea edx, [edx + ecx + 0xe]
push ebx
push edx
mov edx, dword [ebp + 4]
lea ecx, [ecx + edx + 0xe]
push ecx
lea edx, [eax + 0x1e]
push edx
add eax, 0xe
push eax
call fcn.0051f670
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0xa0]
add ecx, 0x20
add esp, 0x30
inc eax
mov dword [esp + 0x6c], ecx
add edx, 0x10
lea ecx, [esi - 1]
cmp eax, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edx
jl 0x5206b8
mov edx, dword [ebp]
lea eax, [esi - 1]
mov ecx, eax
shl ecx, 5
test edi, edi
lea ebx, [ecx + edx + 0xe]
jle 0x5207af
mov edx, dword [esp + 0x80]
lea ecx, [esi*4]
mov dword [esp + 0x7c], ecx
lea esi, [edx + eax*4]
mov dword [esp + 0x74], edi
mov eax, dword [esi]
mov edi, dword [eax*4 + 0x54b4c8]
mov ebp, 0x10
mov edi, edi
lea ecx, [ebx + 4]
push ecx
lea edx, [ebx + 2]
push edx
lea eax, [ebx - 2]
push eax
push edi
call fcn.0051f0c0
mov ecx, dword [esp + 0x34]
add esp, 0x10
add ebx, ecx
dec ebp
jne 0x520780
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
add esi, ecx
dec eax
mov dword [esp + 0x74], eax
jne 0x520770
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret