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

Disassembly:
mov eax, dword [0xa2874c]
sub esp, 0x70
cmp eax, 2
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x52138f
mov ecx, dword [0x821c8c]
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00697ec0
test al, al
je 0x52138f
mov eax, dword [0x821958]
mov ecx, dword [0x821950]
mov edi, dword [0x821c7c]
mov edx, dword [0x821954]
mov dword [esp + 0x78], eax
mov eax, dword [0x82195c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esi + 0xc]
sub eax, 7
mov dword [esp + 0x74], edx
mov ebx, dword [ecx*4 + 0xa39a58]
mov dword [esp + 0x7c], eax
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
call dword [edx + 0x74]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], eax
add edx, 0xffffff80
mov eax, 0x80
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x3c]
mov ecx, 0x100
mov dword [esp + 0x4c], eax
mov dword [esp + 0x6c], eax
add edx, 0xffffffc0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x58], ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x54], edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x17]
push ecx
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
lea edx, [esp + 0x64]
push ebx
xor ebp, ebp
push edx
lea edx, [esp + 0x8c]
mov ecx, edi
mov byte [esp + 0x2f], 0
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
call fcn.00760950
test al, al
je 0x52138f
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
call fcn.00697e60
mov ecx, dword [0x821f8c]
xor edx, edx
mov si, word [ecx + 0x24]
sub si, ax
mov eax, dword [esp + 0x54]
sub esi, eax
push eax
push edx
sub esi, 3
call fcn.007618e0
mov ecx, dword [0x821c7c]
mov ebp, eax
mov eax, dword [esp + 0x4c]
mov edx, dword [ecx]
lea ebx, [eax + 1]
call dword [edx + 0x7c]
mov ecx, dword [0x821f8c]
mov edx, dword [ecx + 0x28]
mov ecx, edx
imul ecx, ebx
add ecx, eax
lea eax, [ebp + ecx*2]
mov ecx, dword [0x821f8c]
cmp eax, dword [ecx + 0x1c]
jae 0x5212e1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
test ecx, ecx
lea eax, [ebp + eax*2]
mov dword [esp + 0x20], 0
jle 0x52137d
mov ebx, dword [esp + 0x48]
xor ecx, ecx
test ebx, ebx
jle 0x52129e
mov ebp, dword [esp + 0x14]
movsx ebx, byte [ebp]
inc ebp
test ebx, ebx
mov dword [esp + 0x14], ebp
jle 0x52128f
cmp word [eax], si
jbe 0x52128f
mov ebx, dword [ebx*4 + 0xa39578]
mov bx, word [edi + ebx*2]
mov word [edi], bx
mov ebx, dword [esp + 0x48]
add edi, 2
add eax, 2
inc ecx
cmp ecx, ebx
jl 0x52126b
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
add edi, ebx
mov ebx, dword [esp + 0x1c]
add ebx, 0x100
add esi, 0xffff
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov ebx, edx
mov dword [esp + 0x18], edi
sub ebx, ecx
mov ecx, dword [esp + 0x20]
inc ecx
lea eax, [eax + ebx*2]
mov ebx, dword [esp + 0x4c]
cmp ecx, ebx
mov dword [esp + 0x20], ecx
jl 0x521261
jmp 0x52137d
mov eax, dword [esp + 0x4c]
xor ebx, ebx
test eax, eax
jle 0x52137d
mov eax, dword [esp + 0x48]
xor ebp, ebp
test eax, eax
jle 0x52134b
mov eax, dword [esp + 0x14]
movsx ecx, byte [eax]
inc eax
mov dword [esp + 0x20], ecx
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x52133f
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
lea eax, [ecx + ebp]
lea ecx, [ebx + edx]
push ecx
mov ecx, dword [0x821f8c]
push eax
call fcn.007618e0
cmp word [eax], si
jbe 0x52133f
mov eax, dword [esp + 0x20]
mov ecx, dword [eax*4 + 0xa39578]
mov dx, word [edi + ecx*2]
mov word [edi], dx
mov eax, dword [esp + 0x48]
add edi, 2
inc ebp
cmp ebp, eax
jl 0x5212f9
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0x100
add esi, 0xffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
inc ebx
cmp ebx, eax
mov dword [esp + 0x18], edi
jl 0x5212ef
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
call dword [edx + 0x60]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret