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

Disassembly:
sub esp, 0x708
push ebx
push ebp
push esi
push edi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x269]
mov byte [esp + 0x268], 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 + 0x3f9]
mov byte [esp + 0x3f8], 0
rep stosd dword es:[edi], eax
xor ecx, ecx
xor edx, edx
stosw word es:[edi], ax
mov dword [esp + 0x6d], ecx
mov dword [esp + 0x81], edx
mov dword [esp + 0x71], ecx
mov dword [esp + 0x85], edx
stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x75], ecx
mov dword [esp + 0x2d], eax
mov dword [esp + 0x79], ecx
mov dword [esp + 0x31], eax
mov word [esp + 0x7d], cx
mov word [esp + 0x35], ax
mov byte [esp + 0x7f], cl
mov byte [esp + 0x588], cl
mov ecx, 0x63
lea edi, [esp + 0x589]
mov byte [esp + 0x37], al
mov byte [esp + 0x6c], al
mov dword [esp + 0x89], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ecx, ecx
mov dword [esp + 0x8d], edx
stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x59], ecx
mov dword [esp + 0x45], eax
mov dword [esp + 0x5d], ecx
mov dword [esp + 0x49], eax
mov dword [esp + 0x61], ecx
mov dword [esp + 0x4d], eax
mov dword [esp + 0x65], ecx
mov dword [esp + 0x51], eax
mov word [esp + 0x69], cx
mov word [esp + 0x55], ax
mov byte [esp + 0x6b], cl
mov byte [esp + 0xd8], cl
mov ecx, 0x63
lea edi, [esp + 0xd9]
mov byte [esp + 0x57], al
mov byte [esp + 0x58], al
mov word [esp + 0x91], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x99]
mov byte [esp + 0x98], dl
rep stosd dword es:[edi], eax
mov byte [esp + 0x93], dl
mov byte [esp + 0x44], dl
mov byte [esp + 0x14], dl
mov dword [esp + 0x15], edx
stosw word es:[edi], ax
mov dword [esp + 0x19], edx
mov byte [esp + 0x2c], 0
mov word [esp + 0x1d], dx
mov byte [esp + 0x80], 0
stosb byte es:[edi], al
mov byte [esp + 0x1f], dl
mov byte [esp + 0x20], dl
mov ebx, dword [esp + 0x71c]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x21], eax
mov dword [esp + 0x39], ecx
mov dword [esp + 0x25], eax
mov dword [esp + 0x3d], ecx
mov word [esp + 0x29], ax
mov word [esp + 0x41], cx
mov byte [esp + 0x2b], al
test ebx, ebx
mov byte [esp + 0x38], al
mov byte [esp + 0x43], cl
jne 0x5219f2
pop edi
pop esi
pop ebp
mov eax, 0xc9
pop ebx
add esp, 0x708
ret
xor edx, edx
xor eax, eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x88], edx
xor ecx, ecx
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x90], edx
mov edx, dword [ebx]
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], ecx
push edx
lea eax, [esp + 0x84]
mov dword [esp + 0x68], ecx
push 0x54a1f8
push eax
mov dword [esp + 0x74], ecx
call esi
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x50]
push ecx
push 0x54a1f8
push edx
call esi
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x70]
push eax
push 0x54a1f8
push ecx
call esi
lea edx, [esp + 0x7c]
lea eax, [esp + 0x68]
push edx
lea ecx, [esp + 0xa8]
push eax
push ecx
push 3
push 0x54a1f4
call fcn.00527620
mov edx, eax
add esp, 0x38
test edx, edx
jne 0x521ab2
pop edi
pop esi
pop ebp
mov eax, 0x132
pop ebx
add esp, 0x708
ret
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0xd8]
lea ebp, [esp + 0xd8]
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 + 0x58c]
lea edx, [esp + 0xdc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x58c]
push ecx
push edx
push str.getSrvrInfoStr
push 3
push 0x54a1e4
call fcn.00527620
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x521b39
pop edi
pop esi
pop ebp
mov eax, 0x132
pop ebx
add esp, 0x708
ret
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x268]
lea esi, [esp + 0x268]
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 + 0x94], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x94]
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 + 0x26c]
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 0x521bc0
and ecx, 0xffff
lea esi, [esp + 0x268]
mov edi, ecx
push esi
push 0x5498d0
call fcn.0051a170
add esp, 8
add esi, 0x10
dec edi
jne 0x521bac
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3f8]
push ecx
push edx
lea eax, [esp + 0x270]
push ebx
push eax
call fcn.00523860
add esp, 0x10
test eax, eax
jne 0x521dca
mov eax, dword [esp + 0x10]
mov cx, ax
shr cx, 4
test cx, cx
jbe 0x521c1d
and ecx, 0xffff
lea esi, [esp + 0x3f8]
mov edi, ecx
push esi
push 0x5498d0
call fcn.0051a6a0
add esp, 8
add esi, 0x10
dec edi
jne 0x521c05
mov eax, dword [esp + 0x10]
xor ecx, ecx
and eax, 0xffff
mov dword [esp + 0x6c], ecx
xor edx, edx
mov dword [esp + 0x70], ecx
mov byte [esp + eax + 0x3f8], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x78], ecx
xor eax, eax
mov dword [esp + 0x7c], ecx
mov ecx, 0x64
lea edi, [esp + 0xd8]
mov dword [esp + 0x30], edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xd8]
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x70]
push ecx
lea eax, [esp + 0x400]
push edx
push eax
push 3
push 0x54a1e4
call fcn.00527460
add esp, 0x18
cmp eax, 0xffffffff
jne 0x521c9c
pop edi
pop esi
pop ebp
mov eax, 0x12f
pop ebx
add esp, 0x708
ret
mov esi, str.error
lea eax, [esp + 0x6c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x521ccd
test cl, cl
je 0x521cc9
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x521ccd
add eax, 2
add esi, 2
test cl, cl
jne 0x521ca5
xor eax, eax
jmp 0x521cd2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x521cee
lea eax, [esp + 0x2c]
push eax
call fcn.00526df0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x708
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x98]
xor edx, edx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0xa0]
push eax
lea edx, [esp + 0xe4]
push ecx
push edx
push 4
push 0x54a1f4
call fcn.00527460
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x521d69
pop edi
pop esi
pop ebp
mov eax, 0x12f
pop ebx
add esp, 0x708
ret
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x720]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp], 0
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.00526df0
lea edx, [esp + 0x24]
mov word [ebp + 0x40], ax
push edx
call fcn.00526df0
mov word [ebp + 0x42], ax
lea eax, [esp + 0x40]
push eax
call fcn.00526df0
add esp, 0xc
mov word [ebp + 0x44], ax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x708
ret