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

Disassembly:
sub esp, 0x7c8
push ebx
push ebp
push esi
push edi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x279]
mov byte [esp + 0x278], 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 + 0x4b9]
mov byte [esp + 0x4b8], 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 + 0x648], cl
mov ecx, 0x63
lea edi, [esp + 0x649]
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 + 0xe8], cl
mov ecx, 0x63
lea edi, [esp + 0xe9]
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 + 0xa9]
mov byte [esp + 0xa8], 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 + 0x7dc]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x99], edx
mov dword [esp + 0x21], eax
mov dword [esp + 0x39], ecx
mov dword [esp + 0x9d], edx
mov dword [esp + 0x25], eax
mov dword [esp + 0x3d], ecx
mov dword [esp + 0xa1], edx
mov word [esp + 0x29], ax
mov word [esp + 0x41], cx
mov word [esp + 0xa5], dx
mov byte [esp + 0x2b], al
test ebx, ebx
mov byte [esp + 0x38], al
mov byte [esp + 0x43], cl
mov byte [esp + 0x98], cl
mov byte [esp + 0xa7], dl
jne 0x40bd3d
pop edi
pop esi
pop ebp
mov eax, 0xc9
pop ebx
add esp, 0x7c8
ret
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x88], eax
xor edx, edx
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x90], eax
mov eax, dword [ebx]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], edx
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x68], edx
push 0x42c080
push ecx
mov dword [esp + 0x74], edx
call esi
mov edx, dword [ebx + 4]
lea eax, [esp + 0x50]
push edx
push 0x42c080
push eax
call esi
mov ecx, dword [ebx + 8]
lea edx, [esp + 0x70]
push ecx
push 0x42c080
push edx
call esi
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0xa8]
push ecx
push edx
push 3
push 0x42c07c
call fcn.004112d0
mov edx, eax
add esp, 0x38
test edx, edx
jne 0x40bdfd
pop edi
pop esi
pop ebp
mov eax, 0x132
pop ebx
add esp, 0x7c8
ret
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0xe8]
lea ebp, [esp + 0xe8]
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 + 0x64c]
lea edx, [esp + 0xec]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64c]
push ecx
push edx
push str.getSrvrInfoStr
push 3
push 0x42c06c
call fcn.004112d0
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x40be84
pop edi
pop esi
pop ebp
mov eax, 0x132
pop ebx
add esp, 0x7c8
ret
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x278]
lea esi, [esp + 0x278]
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 + 0x27c]
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 + 0x9c]
push ecx
call fcn.004113e0
lea edx, [esp + 0xa0]
lea eax, [esp + 0x410]
push edx
push eax
call fcn.004048d0
add esp, 0x10
test si, si
jbe 0x40bf30
lea edi, [esp + 0x278]
and esi, 0xffff
lea ecx, [esp + 0x408]
push edi
push ecx
call fcn.004049c0
add esp, 8
add edi, 0x10
dec esi
jne 0x40bf19
lea edx, [esp + 0x10]
lea eax, [esp + 0x4b8]
push edx
push eax
lea ecx, [esp + 0x280]
push ebx
push ecx
call fcn.0040dd20
add esp, 0x10
test eax, eax
jne 0x40c139
mov eax, dword [esp + 0x10]
mov cx, ax
shr cx, 4
test cx, cx
jbe 0x40bf90
and ecx, 0xffff
lea esi, [esp + 0x4b8]
mov edi, ecx
lea edx, [esp + 0x408]
push esi
push edx
call fcn.00404bf0
add esp, 8
add esi, 0x10
dec edi
jne 0x40bf75
mov eax, dword [esp + 0x10]
and eax, 0xffff
xor ecx, ecx
mov dword [esp + 0x2c], ecx
lea edi, [esp + 0xe8]
mov byte [esp + eax + 0x4b8], 0
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x74], eax
mov ecx, 0x64
mov dword [esp + 0x78], eax
lea edx, [esp + 0xe8]
mov dword [esp + 0x7c], eax
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x70]
push eax
lea edx, [esp + 0x4c0]
push ecx
push edx
push 3
push 0x42c06c
call fcn.00411110
add esp, 0x18
cmp eax, 0xffffffff
jne 0x40c00d
pop edi
pop esi
pop ebp
mov eax, 0x12f
pop ebx
add esp, 0x7c8
ret
mov esi, str.error
lea eax, [esp + 0x6c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40c03e
test cl, cl
je 0x40c03a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40c03e
add eax, 2
add esi, 2
test cl, cl
jne 0x40c016
xor eax, eax
jmp 0x40c043
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40c060
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c8
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xa8]
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 + 0xb0]
push eax
lea edx, [esp + 0xf4]
push ecx
push edx
push 4
push 0x42c07c
call fcn.00411110
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x40c0db
pop edi
pop esi
pop ebp
mov eax, 0x12f
pop ebx
add esp, 0x7c8
ret
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x7e0]
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]
mov esi, dword [sym.imp.MSVCR71.dll_atoi]
lea ecx, [esp + 0x14]
push ecx
call esi
lea edx, [esp + 0x24]
mov word [ebp + 0x40], ax
push edx
call esi
mov word [ebp + 0x42], ax
lea eax, [esp + 0x40]
push eax
call esi
add esp, 0xc
mov word [ebp + 0x44], ax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c8
ret