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

Disassembly:
sub esp, 0x778
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x99]
mov byte [esp + 0x98], bl
mov byte [esp + 0x468], bl
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 + 0x469]
mov byte [esp + 0x228], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ecx, ecx
xor edx, edx
stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x21], ecx
mov dword [esp + 0x71], eax
mov dword [esp + 0x25], ecx
mov dword [esp + 0x75], eax
mov dword [esp + 0x29], ecx
mov dword [esp + 0x79], eax
mov dword [esp + 0x2d], ecx
mov dword [esp + 0x7d], eax
mov word [esp + 0x31], cx
mov word [esp + 0x81], ax
mov byte [esp + 0x33], cl
mov ecx, 0x63
lea edi, [esp + 0x229]
mov byte [esp + 0x83], al
mov dword [esp + 0x49], edx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x4d], edx
stosw word es:[edi], ax
mov dword [esp + 0x35], ecx
mov byte [esp + 0x5f8], bl
mov dword [esp + 0x39], ecx
mov dword [esp + 0x51], edx
stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x3d], ecx
mov dword [esp + 0x15], eax
mov dword [esp + 0x41], ecx
mov dword [esp + 0x19], eax
mov word [esp + 0x45], cx
mov word [esp + 0x1d], ax
mov byte [esp + 0x47], cl
mov ecx, 0x63
lea edi, [esp + 0x5f9]
mov byte [esp + 0x1f], al
mov dword [esp + 0x55], edx
rep stosd dword es:[edi], eax
mov word [esp + 0x59], dx
mov byte [esp + 0x70], bl
mov byte [esp + 0x5b], dl
mov dword [esp + 0x5d], edx
stosw word es:[edi], ax
mov dword [esp + 0x61], edx
mov byte [esp + 0x20], bl
stosb byte es:[edi], al
mov dword [esp + 0x65], edx
xor eax, eax
mov dword [esp + 0x69], edx
mov dword [esp + 0x85], eax
mov word [esp + 0x6d], dx
mov dword [esp + 0x89], eax
mov byte [esp + 0x48], bl
mov byte [esp + 0x14], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x5c], bl
mov byte [esp + 0x6f], dl
mov byte [esp + 0x84], bl
mov dword [esp + 0x8d], eax
mov edi, dword [esp + 0x78c]
mov word [esp + 0x91], ax
cmp edi, ebx
mov byte [esp + 0x93], al
jne 0x40b80e
pop edi
pop esi
pop ebp
mov eax, 0xc9
pop ebx
add esp, 0x778
ret
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x74], ecx
xor eax, eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x80], ecx
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x30], edx
mov edx, dword [edi]
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], ecx
push edx
lea eax, [esp + 0x74]
mov dword [esp + 0x6c], ecx
push 0x42c080
push eax
mov dword [esp + 0x78], ecx
call esi
mov ecx, dword [edi + 4]
lea edx, [esp + 0x2c]
push ecx
push 0x42c080
push edx
call esi
mov eax, dword [edi + 8]
lea ecx, [esp + 0x60]
push eax
push 0x42c080
push ecx
call esi
mov edx, dword [esp + 0x7b4]
lea eax, [esp + 0x80]
push edx
push 0x42c080
push eax
call esi
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0xa8]
push eax
push ecx
push 4
push 0x42c07c
call fcn.004112d0
mov edx, eax
add esp, 0x48
cmp edx, ebx
jne 0x40b8f2
pop edi
pop esi
pop ebp
mov eax, 0x132
pop ebx
add esp, 0x778
ret
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x228]
lea ebp, [esp + 0x228]
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.MSVCR71.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 + 0x5fc]
lea edx, [esp + 0x22c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x5fc]
push ecx
push edx
push str.setHeartBeatStr
push 3
push 0x42c06c
call fcn.004112d0
mov edx, eax
add esp, 0x18
cmp edx, ebx
jne 0x40b979
pop edi
pop esi
pop ebp
mov eax, 0x132
pop ebx
add esp, 0x778
ret
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x98]
lea esi, [esp + 0x98]
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 + 0x9c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
shr cx, 4
mov esi, ecx
lea ecx, [esp + 0x88]
push ecx
call fcn.004113e0
lea edx, [esp + 0x8c]
lea eax, [esp + 0x3c0]
push edx
push eax
call fcn.004048d0
add esp, 0x10
cmp si, bx
jbe 0x40ba25
lea edi, [esp + 0x98]
and esi, 0xffff
lea ecx, [esp + 0x3b8]
push edi
push ecx
call fcn.004049c0
add esp, 8
add edi, 0x10
dec esi
jne 0x40ba0e
mov ecx, dword [esp + 0x78c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x468]
push edx
push eax
lea edx, [esp + 0xa0]
push ecx
push edx
call fcn.0040dd20
add esp, 0x10
cmp eax, ebx
jne 0x40bb6c
mov eax, dword [esp + 0x10]
mov cx, ax
shr cx, 4
cmp cx, bx
jbe 0x40ba8c
and ecx, 0xffff
lea esi, [esp + 0x468]
mov edi, ecx
lea eax, [esp + 0x3b8]
push esi
push eax
call fcn.00404bf0
add esp, 8
add esi, 0x10
dec edi
jne 0x40ba71
mov eax, dword [esp + 0x10]
xor ecx, ecx
and eax, 0xffff
mov dword [esp + 0x34], ecx
xor edx, edx
mov dword [esp + 0x38], ecx
mov byte [esp + eax + 0x468], bl
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x40], ecx
xor eax, eax
mov dword [esp + 0x44], ecx
mov ecx, 0x64
lea edi, [esp + 0x228]
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x228]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x470]
push edx
push eax
push 3
push 0x42c06c
call fcn.00411110
add esp, 0x18
cmp eax, 0xffffffff
jne 0x40bb0a
pop edi
pop esi
pop ebp
mov eax, 0x12f
pop ebx
add esp, 0x778
ret
mov esi, str.error
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40bb37
cmp cl, bl
je 0x40bb33
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40bb37
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40bb13
xor eax, eax
jmp 0x40bb3c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40bb59
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret
mov edx, dword [esp + 0x78c]
mov ecx, dword [esp + 0x790]
xor eax, eax
mov dword [edx + 0x18], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret