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

Disassembly:
sub esp, 0x7a4
push ebx
push ebp
push esi
push edi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x305]
mov byte [esp + 0x304], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x495]
mov byte [esp + 0x494], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x75]
mov byte [esp + 0x74], 0
rep stosd dword es:[edi], eax
xor ecx, ecx
xor edx, edx
stosw word es:[edi], ax
mov dword [esp + 0x5d], ecx
mov ebx, dword [esp + 0x7b8]
mov dword [esp + 0x61], ecx
mov dword [esp + 0x21], edx
stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x65], ecx
mov dword [esp + 0x15], eax
mov dword [esp + 0x69], ecx
mov dword [esp + 0x19], eax
mov word [esp + 0x6d], cx
mov word [esp + 0x1d], ax
mov byte [esp + 0x6f], cl
mov byte [esp + 0x624], cl
mov ecx, 0x63
lea edi, [esp + 0x625]
mov byte [esp + 0x1f], al
mov byte [esp + 0x5c], al
mov dword [esp + 0x25], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ecx, ecx
mov dword [esp + 0x29], edx
stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x49], ecx
mov dword [esp + 0x35], eax
mov dword [esp + 0x4d], ecx
mov dword [esp + 0x39], eax
mov dword [esp + 0x51], ecx
mov dword [esp + 0x3d], eax
mov dword [esp + 0x55], ecx
mov dword [esp + 0x41], eax
mov word [esp + 0x59], cx
mov word [esp + 0x45], ax
mov byte [esp + 0x5b], cl
mov byte [esp + 0x204], cl
mov ecx, 0x3f
lea edi, [esp + 0x205]
mov byte [esp + 0x47], al
mov byte [esp + 0x48], al
mov dword [esp + 0x2d], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x31], dx
mov byte [esp + 0x14], 0
test ebx, ebx
mov byte [esp + 0x20], 0
mov byte [esp + 0x33], dl
mov byte [esp + 0x34], dl
stosb byte es:[edi], al
jne 0x521f15
pop edi
pop esi
pop ebp
mov eax, 0xc9
pop ebx
add esp, 0x7a4
ret
xor edx, edx
xor eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], edx
xor ecx, ecx
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], edx
mov edx, dword [ebx]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], ecx
push edx
lea eax, [esp + 0x24]
mov dword [esp + 0x58], ecx
push 0x54a1f8
push eax
mov dword [esp + 0x64], ecx
call esi
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x40]
push ecx
push 0x54a1f8
push edx
call esi
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x60]
push eax
push 0x54a1f8
push ecx
call esi
lea edx, [esp + 0x6c]
lea eax, [esp + 0x58]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
push 3
push 0x54a1f4
call fcn.00527620
mov edx, eax
add esp, 0x38
test edx, edx
jne 0x521fc0
pop edi
pop esi
pop ebp
mov eax, 0x132
pop ebx
add esp, 0x7a4
ret
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x74]
lea ebp, [esp + 0x74]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebp
mov ebp, dword [sym.imp.MSVCR90.dll_free]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x628]
lea edx, [esp + 0x78]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x628]
push ecx
push edx
push str.getDeviceInfoStr
push 3
push 0x54a1e4
call fcn.00527620
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x52203e
pop edi
pop esi
pop ebp
mov eax, 0x132
pop ebx
add esp, 0x7a4
ret
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x304]
lea esi, [esp + 0x304]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x70], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x70]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
lea edi, [esp + 0x308]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
shr cx, 4
test cx, cx
jbe 0x5220bf
and ecx, 0xffff
lea esi, [esp + 0x304]
mov edi, ecx
push esi
push 0x5498d0
call fcn.0051a170
add esp, 8
add esi, 0x10
dec edi
jne 0x5220ab
lea ecx, [esp + 0x10]
lea edx, [esp + 0x494]
push ecx
push edx
lea eax, [esp + 0x30c]
push ebx
push eax
call fcn.00523860
add esp, 0x10
test eax, eax
jne 0x522244
mov eax, dword [esp + 0x10]
mov cx, ax
shr cx, 4
test cx, cx
jbe 0x52211c
and ecx, 0xffff
lea esi, [esp + 0x494]
mov edi, ecx
push esi
push 0x5498d0
call fcn.0051a6a0
add esp, 8
add esi, 0x10
dec edi
jne 0x522104
mov eax, dword [esp + 0x10]
xor ecx, ecx
and eax, 0xffff
mov dword [esp + 0x5c], ecx
xor edx, edx
mov dword [esp + 0x60], ecx
mov byte [esp + eax + 0x494], 0
mov dword [esp + 0x64], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x68], ecx
xor eax, eax
mov dword [esp + 0x6c], ecx
mov ecx, 0x64
lea edi, [esp + 0x74]
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x49c]
push edx
push eax
push 3
push 0x54a1e4
call fcn.00527460
add esp, 0x18
cmp eax, 0xffffffff
jne 0x522195
pop edi
pop esi
pop ebp
mov eax, 0x12f
pop ebx
add esp, 0x7a4
ret
mov esi, str.error
lea eax, [esp + 0x5c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x5221c6
test cl, cl
je 0x5221c2
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x5221c6
add eax, 2
add esi, 2
test cl, cl
jne 0x52219e
xor eax, eax
jmp 0x5221cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5221e7
lea eax, [esp + 0x14]
push eax
call fcn.00526df0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7a4
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x204]
lea edx, [esp + 0x74]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x204]
push ecx
push edx
push 1
push 0x54a1f4
call fcn.00527460
add esp, 0x10
cmp eax, 0xffffffff
jne 0x522228
pop edi
pop esi
pop ebp
mov eax, 0x12f
pop ebx
add esp, 0x7a4
ret
mov eax, dword [esp + 0x7bc]
push 0x60
lea ecx, [esp + 0x208]
push eax
push ecx
call fcn.00527770
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7a4
ret