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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x28], xmm0
movdqu xmmword [ebp - 0x38], xmm0
movdqu xmmword [ebp - 0x48], xmm0
movdqu xmmword [ebp - 0x58], xmm0
movzx eax, word [ebx + 2]
lea edx, [eax - 1]
mov dword [ebp - 0x6c], edx
movzx edx, word [ebx + 4]
add eax, edx
dec eax
mov dword [ebp - 0x68], eax
movzx edx, word [ebx + 6]
add edx, eax
mov dword [ebp - 0x64], edx
movzx eax, word [ebx + 8]
add eax, edx
mov dword [ebp - 0x60], eax
movzx edx, word [ebx + 0xa]
add edx, eax
mov dword [ebp - 0x5c], edx
mov eax, 0x11
mov dword [ebp - 0x70], eax
movzx edx, byte [ecx + 0x11]
mov esi, dword [ebp + edx*4 - 0x70]
lea edi, [esi - 1]
mov dword [ebp + edx*4 - 0x70], edi
mov dword [ebp + esi*4 - 0x58], eax
movzx eax, byte [ecx + 0x10]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 0x10
movzx eax, byte [ecx + 0xf]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 0xf
movzx eax, byte [ecx + 0xe]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 0xe
movzx eax, byte [ecx + 0xd]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 0xd
movzx eax, byte [ecx + 0xc]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 0xc
movzx eax, byte [ecx + 0xb]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 0xb
movzx eax, byte [ecx + 0xa]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 0xa
movzx eax, byte [ecx + 9]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 9
movzx eax, byte [ecx + 8]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 8
movzx eax, byte [ecx + 7]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 7
movzx eax, byte [ecx + 6]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 6
movzx eax, byte [ecx + 5]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 5
movzx eax, byte [ecx + 4]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 4
movzx eax, byte [ecx + 3]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 3
movzx eax, byte [ecx + 2]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 2
movzx eax, byte [ecx + 1]
mov edx, dword [ebp + eax*4 - 0x70]
lea esi, [edx - 1]
mov dword [ebp + eax*4 - 0x70], esi
mov dword [ebp + edx*4 - 0x58], 1
movzx eax, byte [ecx]
mov ecx, dword [ebp + eax*4 - 0x70]
lea edx, [ecx - 1]
mov dword [ebp + eax*4 - 0x70], edx
mov dword [ebp + ecx*4 - 0x58], 0
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x70], 0
je 0x521db8
movzx edi, word [ebx + 2]
test edi, edi
je 0x521daf
xor esi, esi
xor edx, edx
mov ebx, dword [ebp + esi*4 - 0x58]
movzx eax, byte [edx + 0x7a3f24]
shl ebx, 0x10
or ebx, 0xff01
mov dword [ecx + eax*4 + 0x78], ebx
mov dword [ecx + eax*4 + 0x70], ebx
mov dword [ecx + eax*4 + 0x68], ebx
mov dword [ecx + eax*4 + 0x60], ebx
mov dword [ecx + eax*4 + 0x58], ebx
mov dword [ecx + eax*4 + 0x50], ebx
mov dword [ecx + eax*4 + 0x48], ebx
mov dword [ecx + eax*4 + 0x40], ebx
mov dword [ecx + eax*4 + 0x38], ebx
mov dword [ecx + eax*4 + 0x30], ebx
mov dword [ecx + eax*4 + 0x28], ebx
mov dword [ecx + eax*4 + 0x20], ebx
mov dword [ecx + eax*4 + 0x18], ebx
mov dword [ecx + eax*4 + 0x10], ebx
mov dword [ecx + eax*4 + 8], ebx
mov dword [ecx + eax*4], ebx
inc esi
sub edx, 0xffffff80
dec edi
jne 0x521c67
mov eax, dword [ebp + 0x10]
movzx edi, word [eax + 4]
test edi, edi
je 0x521d05
mov eax, dword [ebp + esi*4 - 0x58]
movzx ebx, byte [edx + 0x7a3f24]
shl eax, 0x10
or eax, 0xff02
mov dword [ecx + ebx*4 + 0x70], eax
mov dword [ecx + ebx*4 + 0x60], eax
mov dword [ecx + ebx*4 + 0x50], eax
mov dword [ecx + ebx*4 + 0x40], eax
mov dword [ecx + ebx*4 + 0x30], eax
mov dword [ecx + ebx*4 + 0x20], eax
mov dword [ecx + ebx*4 + 0x10], eax
mov dword [ecx + ebx*4], eax
inc esi
add edx, 0x40
dec edi
jne 0x521ccc
mov eax, dword [ebp + 0x10]
movzx edi, word [eax + 6]
test edi, edi
je 0x521d39
mov eax, dword [ebp + esi*4 - 0x58]
movzx ebx, byte [edx + 0x7a3f24]
shl eax, 0x10
or eax, 0xff03
mov dword [ecx + ebx*4 + 0x60], eax
mov dword [ecx + ebx*4 + 0x40], eax
mov dword [ecx + ebx*4 + 0x20], eax
mov dword [ecx + ebx*4], eax
inc esi
add edx, 0x20
dec edi
jne 0x521d10
mov eax, dword [ebp + 0x10]
movzx edi, word [eax + 8]
test edi, edi
je 0x521d65
mov eax, dword [ebp + esi*4 - 0x58]
movzx ebx, byte [edx + 0x7a3f24]
shl eax, 0x10
or eax, 0xff04
mov dword [ecx + ebx*4 + 0x40], eax
mov dword [ecx + ebx*4], eax
inc esi
add edx, 0x10
dec edi
jne 0x521d44
mov eax, dword [ebp + 0x10]
movzx eax, word [eax + 0xa]
test eax, eax
je 0x521d9d
lea esi, [esi*4 - 0x58]
add esi, ebp
mov dword [ebp - 0x74], esi
xor edi, edi
mov esi, dword [ebp - 0x74]
mov ebx, dword [esi + edi*4]
movzx esi, byte [edx + edi*8 + 0x7a3f24]
shl ebx, 0x10
or ebx, 0xff05
mov dword [ecx + esi*4], ebx
inc edi
cmp eax, edi
jne 0x521d7e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
xor esi, esi
jmp 0x521cc1
mov eax, dword [ebp - 0x58]
shl eax, 0x10
or eax, 0xff00
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], eax
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], eax
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], eax
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], eax
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], eax
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], eax
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], eax
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], eax
jmp 0x521d9d