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

Disassembly:
push eax
push ecx
lea edx, [esp + 0x60]
mov dword [esp + 0x58], eax
push 0x54a1f8
push edx
mov dword [esp + 0x64], eax
call esi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x2c]
push eax
push 0x54a1f8
push ecx
call esi
mov edx, dword [edi + 8]
lea eax, [esp + 0x88]
push edx
push 0x54a1f8
push eax
call esi
mov ecx, dword [esp + 0x6f4]
lea edx, [esp + 0x6c]
push ecx
push 0x54a1f8
push edx
call esi
lea eax, [esp + 0x78]
lea ecx, [esp + 0xa0]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x94]
push edx
push eax
push 4
push 0x54a1f4
call fcn.00527620
mov edx, eax
add esp, 0x48
cmp edx, ebx
jne 0x521605
pop edi
pop esi
pop ebp
mov eax, 0x132
pop ebx
add esp, 0x6b8
ret
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x218]
lea ebp, [esp + 0x218]
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 + 0x53c]
lea edx, [esp + 0x21c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x53c]
push ecx
push edx
push str.setHeartBeatStr
push 3
push 0x54a1e4
call fcn.00527620
mov edx, eax
add esp, 0x18
cmp edx, ebx
jne 0x52168c
pop edi
pop esi
pop ebp
mov eax, 0x132
pop ebx
add esp, 0x6b8
ret
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x88]
lea esi, [esp + 0x88]
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 + 0x84], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x84]
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 + 0x8c]
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
cmp cx, bx
jbe 0x521713
and ecx, 0xffff
lea esi, [esp + 0x88]
mov edi, ecx
push esi
push 0x5498d0
call fcn.0051a170
add esp, 8
add esi, 0x10
dec edi
jne 0x5216ff
mov eax, dword [esp + 0x6cc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3a8]
push ecx
push edx
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.00523860
add esp, 0x10
cmp eax, ebx
jne 0x521854
mov eax, dword [esp + 0x10]
mov cx, ax
shr cx, 4
cmp cx, bx
jbe 0x521777
and ecx, 0xffff
lea esi, [esp + 0x3a8]
mov edi, ecx
push esi
push 0x5498d0
call fcn.0051a6a0
add esp, 8
add esi, 0x10
dec edi
jne 0x52175f
mov eax, dword [esp + 0x10]
and eax, 0xffff
xor edx, edx
mov dword [esp + 0x34], edx
mov ecx, 0x64
mov byte [esp + eax + 0x3a8], bl
xor eax, eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], eax
lea edi, [esp + 0x218]
mov dword [esp + 0x40], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x44], edx
lea ecx, [esp + 0x218]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x3b0]
push eax
push ecx
push 3
push 0x54a1e4
call fcn.00527460
add esp, 0x18
cmp eax, 0xffffffff
jne 0x5217f3
pop edi
pop esi
pop ebp
mov eax, 0x12f
pop ebx
add esp, 0x6b8
ret
mov esi, str.error
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x521820
cmp cl, bl
je 0x52181c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x521820
add eax, 2
add esi, 2
cmp cl, bl
jne 0x5217fc
xor eax, eax
jmp 0x521825
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x521841
lea eax, [esp + 0x14]
push eax
call fcn.00526df0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6b8
ret
mov edx, dword [esp + 0x6cc]
mov ecx, dword [esp + 0x6d0]
xor eax, eax
mov dword [edx + 0x18], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6b8
ret