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

Disassembly:
sub esp, 0x154
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x150], eax
cmp dword [esp + 0x15c], 0
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x164]
push edi
mov edi, dword [esp + 0x164]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
mov dword [esp + 4], ecx
mov dword [esp + 0x10], 0
jne 0x406690
xor eax, eax
pop edi
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00423888
add esp, 0x154
ret
sub dword [esp + 0x160], 1
je 0x4069a3
movsx eax, byte [edi]
test eax, eax
je 0x4069a3
push ebx
push ebp
push esi
jmp 0x4066b4
mov edi, dword [esp + 0x18]
cmp eax, 0x25
je 0x4066e3
mov ecx, dword [esp + 0x20]
mov byte [ecx], al
mov eax, dword [esp + 0x1c]
add eax, 1
add ecx, 1
cmp eax, dword [esp + 0x16c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
jae 0x4069a0
jmp 0x406989
mov eax, dword [0x42e010]
mov edx, dword [0x42e014]
mov ecx, dword [0x42e018]
mov ebp, dword [0x42e01c]
xor ebx, ebx
lea esi, [esp + 0x160]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
nop
movsx ecx, byte [edi + 1]
add edi, 1
cmp ecx, 0x2d
mov dword [esp + 0x14], ecx
jne 0x406725
or eax, 1
jmp 0x406710
cmp ecx, 0x2b
jne 0x40672f
or eax, 2
jmp 0x406710
cmp ecx, 0x20
jne 0x40673a
mov byte [esp + 0x29], cl
jmp 0x406710
cmp ecx, 0x23
jne 0x406746
add byte [esp + 0x28], 1
jmp 0x406710
cmp ecx, 0x30
jne 0x406750
or eax, 4
jmp 0x406710
cmp ecx, 0x2a
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edi
jne 0x40678b
mov ecx, dword [esp + 0x10]
add ecx, 4
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx - 4]
test ecx, ecx
jge 0x406778
neg ecx
or eax, 1
mov dword [esp + 0x24], eax
movsx edx, byte [edi + 1]
add edi, 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], edx
mov ecx, edx
jmp 0x4067b7
cmp ecx, 0x30
jl 0x4067bb
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
cmp ecx, 0x39
jg 0x4067b3
lea edx, [edx + edx*4]
add edi, 1
lea edx, [ecx + edx*2 - 0x30]
movsx ecx, byte [edi]
cmp ecx, 0x30
mov dword [esp + 0x14], ecx
jge 0x406798
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], edi
cmp ecx, 0x2e
jne 0x406833
mov edx, dword [esp + 0x18]
movsx ecx, byte [edx + 1]
add edx, 1
cmp ecx, 0x2a
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
jne 0x4067f5
mov ecx, dword [esp + 0x10]
mov ebp, dword [ecx]
add ecx, 4
add edx, 1
mov dword [esp + 0x10], ecx
movsx ecx, byte [edx]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
jmp 0x406828
cmp ecx, 0x30
jl 0x406828
jmp 0x406804
mov ecx, dword [esp + 0x14]
cmp ecx, 0x39
jg 0x406828
lea edx, [ebp + ebp*4]
lea ebp, [ecx + edx*2 - 0x30]
mov ecx, dword [esp + 0x18]
add ecx, 1
mov dword [esp + 0x18], ecx
movsx ecx, byte [ecx]
cmp ecx, 0x30
mov dword [esp + 0x14], ecx
jge 0x406800
mov ecx, dword [esp + 0x14]
or eax, 8
mov dword [esp + 0x24], eax
test byte [esp + 0x24], 1
je 0x406841
and eax, 0xfffffffb
mov dword [esp + 0x24], eax
lea edi, [ecx - 0x25]
cmp edi, 0x53
ja case.0x406857.38
mov edx, dword [esp + 0x18]
lea ecx, [ecx]
movzx edi, byte [edi + 0x406fa8]
jmp dword [edi*4 + 0x406f70]
or eax, 0x10
jmp 0x406866
or eax, 0x20
movsx ecx, byte [edx + 1]
add edx, 1
mov edi, ecx
add edi, 0xffffffdb
cmp edi, 0x53
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
jbe 0x406850
push ecx
push str.__UNKNOWN_FORMAT_CONVERSION_CODE____c__
lea esi, [esp + 0x3c]
mov edx, esi
push 0x12c
push edx
call fcn.00407000
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov ebx, eax
mov eax, dword [esp + 0x20]
mov byte [eax], cl
add eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x16c]
mov dword [esp + 0x1c], eax
jae 0x4069a0
cmp ebx, dword [esp + 0x2c]
jae 0x40690a
test byte [esp + 0x24], 1
jne 0x40690a
mov eax, dword [esp + 0x20]
mov byte [eax], 0x20
add eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x16c]
mov dword [esp + 0x1c], eax
jae 0x4069a0
mov eax, dword [esp + 0x2c]
sub eax, 1
cmp ebx, eax
mov dword [esp + 0x2c], eax
jb 0x4068d5
mov ecx, dword [esp + 0x16c]
mov ebp, dword [esp + 0x1c]
mov eax, ecx
sub eax, ebp
cmp ebx, eax
jbe 0x406931
mov ebx, eax
test ebx, ebx
jbe 0x406953
mov al, byte [esi + ebx]
and al, 0xc0
cmp al, 0x80
jne 0x406931
sub ebx, 1
jne 0x406923
test ebx, ebx
jbe 0x406953
mov edi, dword [esp + 0x20]
mov eax, ebx
jmp 0x406940
mov dl, byte [esi]
mov byte [edi], dl
add edi, 1
add esi, 1
sub eax, 1
jne 0x406940
mov dword [esp + 0x20], edi
add ebp, ebx
cmp ebp, ecx
mov dword [esp + 0x1c], ebp
jae 0x4069a0
cmp ebx, dword [esp + 0x2c]
jae 0x406989
mov eax, dword [esp + 0x20]
mov byte [eax], 0x20
add eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x1c], eax
jae 0x4069a0
add ebx, 1
cmp ebx, dword [esp + 0x2c]
jb 0x406963
mov edx, dword [esp + 0x18]
movsx eax, byte [edx + 1]
add edx, 1
test eax, eax
mov dword [esp + 0x18], edx
jne 0x4066b0
pop esi
pop ebp
pop ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x154]
pop edi
mov byte [eax], 0
mov eax, dword [esp + 0xc]
xor ecx, esp
call fcn.00423888
add esp, 0x154
ret
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
mov edx, dword [eax]
add eax, 4
test cl, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
je 0x4069e5
movsx edx, dx
mov dword [esp + 0x14], edx
test edx, edx
jge 0x4069f6
neg edx
mov dword [esp + 0x14], edx
mov byte [esp + 0x29], 0x2d
jmp 0x406a27
test cl, 2
je 0x406a27
mov byte [esp + 0x29], 0x2b
jmp 0x406a27
mov ecx, dword [esp + 0x10]
mov al, byte [esp + 0x24]
mov edx, dword [ecx]
add ecx, 4
test al, 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
je 0x406a22
movzx edx, dx
mov dword [esp + 0x14], edx
mov byte [esp + 0x29], 0
mov al, byte [esp + 0x24]
test al, 8
jne 0x406a4d
test al, 4
je 0x406a41
cmp byte [esp + 0x29], 0
mov ebp, dword [esp + 0x2c]
je 0x406a41
add ebp, 0xffffffff
cmp ebp, 1
jae 0x406a4d
mov ebp, 1
jmp 0x406a5a
cmp ebp, 0x12b
jbe 0x406a5a
mov ebp, 0x12b
xor ebx, ebx
test edx, edx
je 0x406a89
mov eax, 0xcccccccd
mul edx
shr edx, 3
mov cl, 0xa
mov al, dl
imul cl
mov cl, byte [esp + 0x14]
sub cl, al
sub esi, 1
add cl, 0x30
add ebx, 1
test edx, edx
mov byte [esi], cl
mov dword [esp + 0x14], edx
jne 0x406a60
cmp ebx, ebp
jae 0x406a9e
sub ebp, ebx
mov ecx, ebp
add ebx, ecx
sub esi, 1
sub ecx, 1
mov byte [esi], 0x30
jne 0x406a93
mov al, byte [esp + 0x29]
test al, al
je 0x4068c8
sub esi, 1
mov byte [esi], al
add ebx, 1
jmp 0x4068c8
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
add eax, 4
test cl, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [eax - 4]
je 0x406ad1
movzx eax, ax
test cl, 8
jne 0x406aeb
test cl, 4
je 0x406adf
mov ebp, dword [esp + 0x2c]
cmp ebp, 1
jae 0x406aeb
mov ebp, 1
jmp 0x406af8
cmp ebp, 0x12b
jbe 0x406af8
mov ebp, 0x12b
xor ebx, ebx
test eax, eax
je 0x406b17
mov edi, edi
mov dl, al
and dl, 7
sub esi, 1
add dl, 0x30
shr eax, 3
add ebx, 1
test eax, eax
mov byte [esi], dl
jne 0x406b00
cmp byte [esp + 0x28], 0
je 0x406b30
test ebx, ebx
je 0x406b30
cmp byte [esi], 0x30
je 0x406b30
sub esi, 1
mov byte [esi], 0x30
add ebx, 1
cmp ebx, ebp
jae 0x4068c8
sub ebp, ebx
mov eax, ebp
add ebx, eax
mov edi, edi
sub esi, 1
sub eax, 1
mov byte [esi], 0x30
jne 0x406b40
jmp 0x4068c8
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [eax - 4]
test eax, eax
jne 0x406b71
mov esi, 0x43700c
mov ebx, 8
jmp 0x4068c8
cmp byte [esp + 0x28], 0
lea esi, [esp + 0x34]
je 0x406b9b
mov ecx, dword [eax]
sub ecx, 4
je 0x406b93
sub ecx, 2
je 0x406b8c
xor ebp, ebp
jmp 0x406b9b
mov ebp, 0x10
jmp 0x406b98
mov ebp, 4
add eax, 4
mov ecx, ebp
sub ecx, 4
je 0x406c7f
sub ecx, 2
je 0x406c44
sub ecx, 0xa
je 0x406bd7
push str.___ERROR:_Must_specify_address_size__i.e.__.4aIPv4___.6aEthernet___.16aIPv6____
push 0x42e108
lea eax, [esp + 0x3c]
push 0x12c
push eax
call fcn.00407000
add esp, 0x10
mov ebx, eax
jmp 0x4068c8
movzx ecx, byte [eax + 0xf]
movzx edx, byte [eax + 0xe]
push ecx
movzx ecx, byte [eax + 0xd]
push edx
movzx edx, byte [eax + 0xc]
push ecx
movzx ecx, byte [eax + 0xb]
push edx
movzx edx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
push edx
movzx edx, byte [eax + 8]
push ecx
movzx ecx, byte [eax + 7]
push edx
movzx edx, byte [eax + 6]
push ecx
movzx ecx, byte [eax + 5]
push edx
movzx edx, byte [eax + 4]
push ecx
movzx ecx, byte [eax + 3]
push edx
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
push str._02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X
lea eax, [esp + 0x78]
push 0x12c
push eax
call fcn.00407000
add esp, 0x4c
mov ebx, eax
jmp 0x4068c8
movzx ecx, byte [eax + 5]
movzx edx, byte [eax + 4]
push ecx
movzx ecx, byte [eax + 3]
push edx
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
push str._02X:_02X:_02X:_02X:_02X:_02X
lea eax, [esp + 0x50]
push 0x12c
push eax
call fcn.00407000
add esp, 0x24
mov ebx, eax
jmp 0x4068c8
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
push str._d._d._d._d
lea eax, [esp + 0x48]
push 0x12c
push eax
call fcn.00407000
add esp, 0x1c
mov ebx, eax
jmp 0x4068c8
or eax, 0x28
mov dword [esp + 0x24], eax
mov ebp, 8
mov edi, str.0123456789ABCDEF
jmp 0x406cc8
mov edi, str.0123456789abcdef
mov eax, dword [esp + 0x10]
mov bl, byte [esp + 0x24]
add eax, 4
test bl, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [eax - 4]
je 0x406ce2
movzx eax, ax
test bl, 8
jne 0x406d06
test bl, 4
je 0x406cfa
cmp byte [esp + 0x28], 0
mov ebp, dword [esp + 0x2c]
je 0x406cfa
add ebp, 0xfffffffe
cmp ebp, 1
jae 0x406d06
mov ebp, 1
jmp 0x406d13
cmp ebp, 0x12b
jbe 0x406d13
mov ebp, 0x12b
xor ebx, ebx
test eax, eax
je 0x406d37
lea esp, [esp]
mov edx, eax
and edx, 0xf
mov dl, byte [edx + edi]
sub esi, 1
shr eax, 4
add ebx, 1
test eax, eax
mov byte [esi], dl
jne 0x406d20
cmp ebx, ebp
jae 0x406d4c
sub ebp, ebx
mov eax, ebp
add ebx, eax
sub esi, 1
sub eax, 1
mov byte [esi], 0x30
jne 0x406d41
cmp byte [esp + 0x28], 0
je 0x4068c8
sub esi, 1
mov byte [esi], cl
sub esi, 1
mov byte [esi], 0x30
add ebx, 2
jmp 0x4068c8
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
mov al, byte [eax - 4]
lea esi, [esp + 0x15f]
mov byte [esp + 0x15f], al
mov ebx, 1
jmp 0x4068c8
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
add eax, 4
test esi, esi
mov dword [esp + 0x10], eax
jne 0x406db0
mov esi, str.__NULL__
mov ebx, 8
jmp 0x406f0a
movsx eax, byte [esp + 0x28]
sub eax, 0
je 0x406e95
sub eax, 1
je 0x406e8d
sub eax, 1
jne 0x406f0a
mov al, byte [esi]
test al, al
lea ebx, [esp + 0x34]
jne 0x406df0
mov byte [esp + 0x34], 0x2e
mov al, byte [esi]
test al, al
lea ebx, [esp + 0x35]
je 0x406e80
lea ecx, [ecx]
cmp al, 0x3f
ja 0x406e3b
movzx ecx, al
add ecx, ebx
lea edx, [esp + 0x132]
cmp ecx, edx
jae 0x406e66
push esi
lea eax, [esp + 0x164]
push str._s.
sub eax, ebx
push eax
push ebx
call fcn.00407000
movzx ecx, byte [esi]
add ebx, eax
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
add esp, 0x10
test al, al
jne 0x406df0
lea edx, [esp + 0x34]
sub ebx, edx
mov esi, edx
jmp 0x406f0a
movzx edx, byte [esi]
push edx
lea eax, [esp + 0x164]
push str.__INVALID_LABEL_LENGTH__u__
sub eax, ebx
push eax
push ebx
call fcn.00407000
lea edx, [esp + 0x44]
add ebx, eax
add esp, 0x10
sub ebx, edx
mov esi, edx
jmp 0x406f0a
lea ecx, [esp + 0x160]
push str.__NAME_TOO_LONG__
sub ecx, ebx
push ecx
push ebx
call fcn.00407000
add esp, 0xc
add ebx, eax
lea edx, [esp + 0x34]
sub ebx, edx
mov esi, edx
jmp 0x406f0a
movzx ebx, byte [esi]
add esi, 1
jmp 0x406f0a
xor ebx, ebx
test byte [esp + 0x24], 8
jne 0x406ead
cmp byte [esi], bl
je 0x406f0a
add ebx, 1
cmp byte [esi + ebx], 0
jne 0x406ea2
jmp 0x406f0a
test ebp, ebp
jbe 0x406ebe
cmp byte [esi + ebx], 0
je 0x406ebe
add ebx, 1
cmp ebx, ebp
jb 0x406eb1
test ebx, ebx
mov edx, ebx
jbe 0x406f0a
lea eax, [esi + ebx - 1]
mov cl, byte [eax]
and cl, 0xc0
cmp cl, 0x80
jne 0x406ede
sub ebx, 1
sub eax, 1
test ebx, ebx
ja 0x406ec8
jmp 0x406f0a
test ebx, ebx
jbe 0x406f0a
mov al, byte [esi + ebx - 1]
and al, 0xc0
cmp al, 0xc0
jne 0x406f0a
sub ebx, 1
mov ecx, edx
sub ecx, ebx
cmp ecx, 7
jae 0x406f0a
mov al, byte [esi + ebx]
mov cl, bl
sub cl, dl
add cl, 7
sar al, cl
cmp al, 0xfe
jne 0x406f0a
mov ebx, edx
test byte [esp + 0x24], 8
je 0x4068c8
cmp ebx, ebp
jbe 0x4068c8
test ebp, ebp
mov ebx, ebp
jbe 0x4068c8
mov cl, byte [esi + ebx]
and cl, 0xc0
cmp cl, 0x80
jne 0x4068c8
sub ebx, 1
jne 0x406f27
jmp 0x4068c8
mov eax, dword [esp + 0x10]
add eax, 4
test byte [esp + 0x24], 0x10
mov dword [esp + 0x10], eax
mov eax, dword [eax - 4]
je 0x406f62
mov cx, word [esp + 0x1c]
mov word [eax], cx
jmp 0x40698d
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
jmp 0x40698d